Create Vehicle Shops
Prior experience as a developer or basic programming skills are advised
Config = {}
Config.VehicleShops = {
["yourjobname"] = {
-- job name
MenuConfig = {
title = "Buy Menu Title Label", -- menu label
icon = "fa-solid fa-car",
TargetCoords = {
-- These coordinates must be in vector3(). You can also add as many as you want.
vec3(0.0, 00.0, 00.0)
},
PedCoords = {
-- These coordinates must be in vector4(). You can also add as many as you want.
vector4(0.0,0.0,0.0,0.0),
},
PedModel = "s_m_y_cop_01" -- ped name https://docs.fivem.net/docs/game-references/ped-models/
},
AuthorizedVehicles = {
-- [index] - grade
[1] = { -- index = grade
vehicles = {
{
model = "police3", -- vehicle spawn code
label = "Police 3", -- Your custom label for the vehicle
price = 1, -- Cost of the vehicle
type = "car" -- The type of vehicle, whether 'car' or 'air', depends on your garage system.
},
{
model = "police2",
label = "Police 2",
price = 20000,
type = "car"
},
-- add more vehicle if you want
}
},
[2] = { -- 2th grade
vehicles = {
{
model = "police3",
label = "Police 3",
price = 1,
type = "car"
},
{
model = "police2",
label = "Police 2",
price = 2000,
type = "car"
},
{
model = "maverick",
label = "Maverick",
price = 10000,
type = "air"
},
-- add more vehicle if you want
}
}
},
DiscordLogs = {
enable = true, -- If false, it doesn't send logs to Discord.
webhook = "", -- discord webhook
Labels = {
Title = "Police Vehicle Shop Log", -- tile for embed
embedColor = 16711680 -- embed color
}
}
},
-- add more if you need
}
Last updated