You can change the NPC Ped, location, blip and heading from here.
Config.TraderNpc = {
Coords = vector3(500.26, -652.05, 24.91 - 0.98),
Model = "s_m_m_trucker_01",
Blip = {
Show = true,
Sprite = 408,
Color = 5,
Name = "Trader",
Scale = 0.7,
},
Heading = 267.76,
}
Vehicles
mTraderjob comes with default 3 vehicles. If you want to change or add more vehicles you can do it from here. You can also adjust the parameters (required levels, rent fee etc.).
You can change the daily mission parameters from here.
Citizen.CreateThread(function()
Config.DailyMission = {
['rewardmoney'] = {
Count = 10000,
RewardXP = 10000,
label = "Earn At Least $10,000"
},
['binco'] = {
Count = 25,
RewardXP = 2000,
label = "Trade at least 25 items in Binco"
},
['lscustom'] = {
Count = 25,
RewardXP = 2000,
label = "Trade at least 25 items in LSCustoms"
},
['digitalden'] = {
Count = 25,
RewardXP = 2000,
label = "Trade at least 25 items in Digital Den"
},
['mountzonah'] = {
Count = 25,
RewardXP = 2000,
label = "Trade at least 25 items in Mount Zonah"
},
['ammunation'] = {
Count = 25,
RewardXP = 2000,
label = "Trade at least 25 items in Ammunation"
},
}
end)
Level And XP
You can edit the leveling intervals from here.
local baseXP = 1000
local xpIncrement = 500
local xpMultiplier = 1.05
Config.RequiredXP = {}
for level = 1, 250 do
Config.RequiredXP[level] = math.floor(baseXP + (level - 1) * xpIncrement * xpMultiplier ^ (level - 1))
end
Fuel System
You can either select the fuel system you are using on your server or you can add your own exports from here.
Config.FuelSystem = "" -- LegacyFuel / x-fuel
Config.SetVehicleFuel = function(vehicle, fuel_level) -- you can change LegacyFuel export if you use another fuel system
if Config.FuelSystem == 'LegacyFuel' then
return exports["LegacyFuel"]:SetFuel(vehicle, fuel_level)
elseif Config.FuelSystem == 'x-fuel' then
return exports["x-fuel"]:SetFuel(vehicle, fuel_level)
else
return SetVehicleFuelLevel(vehicle, fuel_level + 0.0)
end
end
Vehicle Keys
You can either select the vehicle keys system you are using on your server or you can add your own exports from here.
Config.Vehiclekey = true
Config.VehicleSystem = "qb-vehiclekeys" -- cd_garage / qs-vehiclekeys / wasabi-carlock / qb-vehiclekeys
Config.Removekeys = true
Config.RemoveVehicleSystem =
"qb-vehiclekeys" -- cd_garage / qs-vehiclekeys / wasabi-carlock / qb-vehiclekeys
Config.GiveVehicleKey = function(plate, model, vehicle) -- you can change vehiclekeys export if you use another vehicle key system
if Config.Vehiclekey then
if Config.VehicleSystem == 'cd_garage' then
TriggerEvent('cd_garage:AddKeys', plate)
elseif Config.VehicleSystem == 'qs-vehiclekeys' then
model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
exports['qs-vehiclekeys']:GiveKeys(plate, model, true)
elseif Config.VehicleSystem == 'wasabi-carlock' then
exports.wasabi_carlock:GiveKey(plate)
elseif Config.VehicleSystem == 'qb-vehiclekeys' then
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
end
end
end
Config.RemoveVehiclekey = function(plate, model, vehicle)
if Config.Removekeys then
if Config.RemoveVehicleSystem == 'cd_garage' then
TriggerServerEvent('cd_garage:RemovePersistentVehicles', plate)
elseif Config.RemoveVehicleSystem == 'qs-vehiclekeys' then
model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
exports['qs-vehiclekeys']:RemoveKeys(plate, model)
elseif Config.RemoveVehicleSystem == 'wasabi-carlock' then
exports.wasabi_carlock:RemoveKey(plate)
elseif Config.RemoveVehicleSystem == 'qb-vehiclekeys' then
TriggerEvent('qb-vehiclekeys:client:RemoveKeys', plate)
end
end
end