πŸš—Additional Settings

Adding your first (and additional) dealership(s)

  • Go into shared/config.lua and change the default (β€œvehicleshop”) details into correct ones

  • Most items should be explained within the config itself

{ -- DEALERSHIP 1
        name = 'vehicleshop', -- KEEP THIS THE SAME AS THE MAIN JOB ACCESSING THE DEALERSHIP! THIS IS THE SOCIETY & JOB REQUIRED
        label = 'Vehicleshop', -- DEALERSHIP LABEL USED EVERYWHERE WHERE A LABEL IS NEEDED (BLIP ETC.)
        coords = vector3(547.2, -182.06, 54.49), -- COORDS FOR DEALERSHIP MENU + MAP BLIP
        spawn = {coords = vector3(548.4, -198.29, 54.49), heading = 180.0}, -- COORDS WHERE VEHICLE WILL SPAWN WHEN SOLD TO ANOTHER PLAYERR
        showcaseVehicles = { -- SHOWCASE SPOTS (SHOULD SUPPORT A INFINITE AMOUNT! UI WILL PROBABLY BECOME MESSED UP WITH TO MANY, KEEP IT BELOW 6)
            {id = 1, coords = vector3(547.45, -190.61, 54.49), heading = 63.0, model = nil, vehicle = nil}, -- ID = INCREMENTAL VALUE || COORDS = VEHICLE SHOWCASE SPOT || HEADING = VEHICLE HEADING || MODEL = LEAVE THIS NIL || VEHICLE = LEAVE THIS NIL
            {id = 2, coords = vector3(547.9481, -175.6810, 54.0807), heading = 139.0, model = nil, vehicle = nil},
            {id = 3, coords = vector3(544.2737, -181.7314, 54.0809), heading = 33.0, model = nil, vehicle = nil},
            {id = 4, coords = vector3(545.9059, -168.8376, 54.0813), heading = 71.0, model = nil, vehicle = nil},
        },
    },

See Above as 1 dealership-block, if you wish to add another dealership you simply copy-paste the whole block {}

{ -- DEALERSHIP 1
        name = 'vehicleshop', -- KEEP THIS THE SAME AS THE MAIN JOB ACCESSING THE DEALERSHIP! THIS IS THE SOCIETY & JOB REQUIRED
        label = 'Vehicleshop', -- DEALERSHIP LABEL USED EVERYWHERE WHERE A LABEL IS NEEDED (BLIP ETC.)
        coords = vector3(547.2, -182.06, 54.49), -- COORDS FOR DEALERSHIP MENU + MAP BLIP
        spawn = {coords = vector3(548.4, -198.29, 54.49), heading = 180.0}, -- COORDS WHERE VEHICLE WILL SPAWN WHEN SOLD TO ANOTHER PLAYERR
        showcaseVehicles = { -- SHOWCASE SPOTS (SHOULD SUPPORT A INFINITE AMOUNT! UI WILL PROBABLY BECOME MESSED UP WITH TO MANY, KEEP IT BELOW 6)
            {id = 1, coords = vector3(547.45, -190.61, 54.49), heading = 63.0, model = nil, vehicle = nil}, -- ID = INCREMENTAL VALUE || COORDS = VEHICLE SHOWCASE SPOT || HEADING = VEHICLE HEADING || MODEL = LEAVE THIS NIL || VEHICLE = LEAVE THIS NIL
            {id = 2, coords = vector3(547.9481, -175.6810, 54.0807), heading = 139.0, model = nil, vehicle = nil},
            {id = 3, coords = vector3(544.2737, -181.7314, 54.0809), heading = 33.0, model = nil, vehicle = nil},
            {id = 4, coords = vector3(545.9059, -168.8376, 54.0813), heading = 71.0, model = nil, vehicle = nil},
        },
},

{ -- DEALERSHIP 2
        name = 'vehicleshop', -- KEEP THIS THE SAME AS THE MAIN JOB ACCESSING THE DEALERSHIP! THIS IS THE SOCIETY & JOB REQUIRED
        label = 'Vehicleshop', -- DEALERSHIP LABEL USED EVERYWHERE WHERE A LABEL IS NEEDED (BLIP ETC.)
        coords = vector3(547.2, -182.06, 54.49), -- COORDS FOR DEALERSHIP MENU + MAP BLIP
        spawn = {coords = vector3(548.4, -198.29, 54.49), heading = 180.0}, -- COORDS WHERE VEHICLE WILL SPAWN WHEN SOLD TO ANOTHER PLAYERR
        showcaseVehicles = { -- SHOWCASE SPOTS (SHOULD SUPPORT A INFINITE AMOUNT! UI WILL PROBABLY BECOME MESSED UP WITH TO MANY, KEEP IT BELOW 6)
            {id = 1, coords = vector3(547.45, -190.61, 54.49), heading = 63.0, model = nil, vehicle = nil}, -- ID = INCREMENTAL VALUE || COORDS = VEHICLE SHOWCASE SPOT || HEADING = VEHICLE HEADING || MODEL = LEAVE THIS NIL || VEHICLE = LEAVE THIS NIL
            {id = 2, coords = vector3(547.9481, -175.6810, 54.0807), heading = 139.0, model = nil, vehicle = nil},
            {id = 3, coords = vector3(544.2737, -181.7314, 54.0809), heading = 33.0, model = nil, vehicle = nil},
            {id = 4, coords = vector3(545.9059, -168.8376, 54.0813), heading = 71.0, model = nil, vehicle = nil},
        },
},

Each dealership you add will require their own society + job setup to function with receiving money

  • In dealership_vehicles create a new entry

INSERT INTO `dealership_vehicles` (`dealership`, `data`) VALUES ('vehicleshop', '[]');
  • In dealership_shop you will need to add all vehicles accessible to the shop with their model, name (label), price, category and how many there is available

INSERT INTO `dealership_shop` (`dealerships`, `model`, `name`, `price`, `category`, `available`) VALUES ('[{\"name\":\"vehicleshop\"}]', 'adder', 'Adder Label', 1000, 'standard', 100);

If you wish to make a car accessible to more than 1 dealership, simply change the dealerships in dealership_shop for that specific vehicle, and update the [{"name":"vehicleshop"}] into [{"name":"vehicleshop"}, {"name":"vehicleshop2"}]

Last updated