Dealers & vehicles
Add dealers and vehicles.
Dealers
Every entry in Config.Shops is a dealer with a blip and a marker.
lua
pdm = {
Label = 'Premium Deluxe Motorsport',
Catalog = 'cars', -- catalog from vehicles.lua
SpawnType = 'automobile', -- 'automobile' | 'bike' | 'boat' | 'heli' | 'plane'
GarageType = 'car', -- owned_vehicles.type: 'car' | 'boat' | 'aircraft'
Camera = 'car', -- camera from Config.Cameras
Entry = vector3(...), -- marker to enter
Preview = vector4(...), -- where the vehicle stands in the shop (x, y, z, heading)
Delivery = vector4(...), -- where the bought vehicle waits
TestDrive = { Enabled = true, Duration = 60, Spawn = vector4(...) },
Resell = { Enabled = true, Pos = vector3(...) },
Blip = { Enabled = true, Sprite = 326, Colour = 17, Scale = 0.7 },
Marker = { Enabled = true, Type = 36, Size = vector3(1.0, 1.0, 1.0), Color = { r = 255, g = 138, b = 31, a = 160 } },
ResellMarker = { Enabled = true, Type = 1, Size = vector3(3.0, 3.0, 0.5), Color = { r = 255, g = 138, b = 31, a = 90 } },
},Previewcan be any position. The camera orbits the vehicle on its own, so no camera position is needed. Cars and motorcycles use the showroom under the map by default (vector4(199.53, -1000.94, -99.0, 90.0)).Enabled = falseturns off the test drive, resale point, blip or marker for this dealer.- Remove a dealer by deleting its block.
Vehicles
In vehicles.lua every catalog has categories and vehicles:
lua
{ model = 'sultan', name = 'Sultan', brand = 'Karin', price = 32000 },modelis the spawn name. Addon vehicles work the same way.resell = 75on a vehicle sets an own resale percentage for that vehicle.- For planes in a helicopter dealer set
SpawnType = 'plane'on the vehicle. - Vehicles that do not exist in the game are skipped and reported in the F8 console.
Was this page helpful?
