Choose your correct language or add your own in the locales folder. Optionally, you can also disable the use of referral codes or custom code-specific rewards here.
Vehicle Spawn Locations
Config.VehicleSpawns = {
{ x = -1030.3112, y = -2732.0222, z = 20.0834, w = 240.3578 },
{ x = -1036.6667, y = -2728.3276, z = 20.0844, w = 240.3578 },
{ x = -1042.4622, y = -2724.8982, z = 20.0879, w = 240.3578 },
}
The script comes with three default spawn locations for vehicles. You can edit them, or add spawn points here.
NPC
Config.NPC = {
model = 's_m_m_highsec_02',
position = vector4(-1032.1654, -2734.6616, 19.1693, 113.3991)
}
Choose your preferred NPC model and its spawn location here.
Default Start Items
Config.StarterItems = {
money = 5000,
items = {
{item = 'bagel_b', count = 5},
{item = 'sprunk', count = 5},
{item = 'phone', count = 1}
},
vehicle = "sultan", -- Base Vehicle, leave unchanged if you dont use giveVehicleToPlayer
parking = "", -- Parking location name for storing the vehicle in the database (set to "" if your garage system doesn't support parking)
teleportPlayer = true -- Do you want to Teleport the Player into the vehicle?
}
Here you can edit what every player gets as base reward. These Items are granted to the player even without referral code. If a referral code was used, these Items get added on top.
If your server runs a parking script, choose the default garage name the vehicle gets stored in as default. If your garage system is global, leave parking empty.
Fuel Support
Config.SetFuel = function(vehicle, fuel)
if GetResourceState("LegacyFuel") == "started" then
exports['LegacyFuel']:SetFuel(vehicle, fuel)
elseif GetResourceState("cdn-fuel") == "started" then
exports['cdn-fuel']:SetFuel(vehicle, fuel)
elseif GetResourceState("ps-fuel") == "started" then
exports['ps-fuel']:SetFuel(vehicle, fuel)
elseif GetResourceState("lj-fuel") == "started" then
exports['lj-fuel']:SetFuel(vehicle, fuel)
elseif GetResourceState("ox_fuel") == "started" then
Entity(vehicle).state.fuel = fuel
else
warn("Fuel resource not found, please set your fuel resource in the config.lua")
end
end
Our script comes with support for most of the popular choices. However if your fuel system is missing here, be sure to add its setFuel function accordingly.