Config

This page will explain every value you can change in the config.

Config

FrameworkBased

If you are using ESX Legacy 1.10.10 or later, or QBCore, you can set this to true. Instead of setting the internal system's onDuty status to true or false, it will use player metadata in your framework instead. The exports will still function and will retrieve the information from your framework.

Config.FrameworkBased = false

Jobs

These are all the jobs the duty menu will work with. If you have the police job and it's listed under Config.Jobs, you will have access to the duty menu.

Config.Jobs = {
    "police",
    "mechanic",    
}

OffDutySettings

PayOffDuty

If this is set to true, you will get paid even when you're off duty.

PayOffDuty = false,

OffDutyMultiplier

This sets how much of your salary you will receive when you're off duty. It only works if PayOffDuty is set to true.

OffDutyMultiplier = 1

MultiplierSettings

SalaryMultiplier

If set to true, a multiplier will be used. This means that if you stay on duty for a full hour, your salary will be increased by 0.2 for an example.

SalaryMultiplier = true,

Hourlyloss

This is how much you will lose per hour when you're off duty.

Hourlyloss = 0.1,

Multiplier

Here you can add the different jobs, along with their maximum multiplier and how much should be added per hour.

    Multiplier = {
        ["police"] = {
            increasePerHour = 0.2, -- How much it will add per hour.
            maxMultiplier = 2.0, -- The limit of how high your multiplier can go.
        },
        ["mechanic"] = {
            increasePerHour = 0.1, -- How much it will add per hour.
            maxMultiplier = 1.8, -- The limit of how high your multiplier can go.
        } 
    }

BossGrades

If you are using ESX, you need to define the names of the boss grades here.

Config.BossGrades = {
    "boss",
    "chef"
}

Last updated