Jobs config
Make sure to set prices and cooldowns
config/jobs.lua
return {
modelsWhitelistEnabled = false,
whitelistedModels = {
[`taxi`] = true,
[`taxi2`] = true
},
--[[
- Allowed vehicles types, make sure to add wanted types
- Available types:
* automobile
* bike
* boat
* heli
* plane
* submarine
* trailer
* train
]] --
allowedVehicleTypes = {
['automobile'] = true
},
--NPC job queue interval
queueInterval = 5000,
-- NPC job rewards
reward = {
---@type RewardType
type = 'cash',
-- The amount of reward, calculated based on distance. amount x (distance / 1000)
-- formula can be changed below
amount = 100,
formula = function(distance, amount)
return math.ceil(amount * (distance / 1000))
end
},
playerRewards = {
---@type RewardType
type = 'cash',
-- The amount of reward, calculated based on distance. amount x (distance / 1000)
-- formula can be changed below
amount = 1,
formula = function(distance, amount)
return math.ceil(amount * (distance / 1000))
end
},
-- Every cooldown in seconds
cooldowns = {
afterDeclinedOrder = 20,
afterCancelledOrder = 20,
afterFinishedOrder = 20
},
blips = {
pickup = {
sprite = 198,
scale = 1.0,
colour = 5,
isShortRange = false,
route = true,
routeColour = 46
},
dropoff = {
sprite = 198,
scale = 1.0,
colour = 5,
isShortRange = false,
route = true,
routeColour = 46
}
}
}