Configuration
Every option in the Yecoyz Duty config file.
Get yecoyz_dutyGeneral
FrameworkBased
On ESX Legacy 1.10.10 or later, or QBCore, set this to true to read the duty status from the framework's player metadata instead of the internal system. The exports keep working either way.
lua
Config.FrameworkBased = falseJobs
The jobs the duty menu works with. A job must be listed here to get access to the menu.
lua
Config.Jobs = {
"police",
"mechanic",
}Off duty pay
PayOffDuty
When true, players are paid while off duty.
lua
PayOffDuty = false,OffDutyMultiplier
The share of the salary paid while off duty. Only used when PayOffDuty is true.
lua
OffDutyMultiplier = 1Salary multiplier
SalaryMultiplier
When true, a multiplier based on time spent on duty is applied to the salary.
lua
SalaryMultiplier = true,Hourlyloss
The amount removed from the multiplier per hour spent off duty.
lua
Hourlyloss = 0.1,Multiplier
Per-job growth and cap. increasePerHour is added for each hour on duty, and maxMultiplier is the limit.
lua
Multiplier = {
["police"] = {
increasePerHour = 0.2,
maxMultiplier = 2.0,
},
["mechanic"] = {
increasePerHour = 0.1,
maxMultiplier = 1.8,
},
}Boss grades (ESX)
On ESX, list the grade names that count as boss grades.
lua
Config.BossGrades = {
"boss",
"chef",
}