# 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.
>
> ```lua
> 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.
>
> ```lua
> Config.Jobs = {
>     "police",
>     "mechanic",    
> }
> ```

## OffDutySettings

### PayOffDuty

> If this is set to true, you will get paid even when you're off duty.
>
> ```lua
> PayOffDuty = false,
> ```

### OffDutyMultiplier

> This sets how much of your salary you will receive when you're off duty. It only works if [`PayOffDuty` ](#payoffduty)is set to true.
>
> ```lua
> 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.
>
> ```lua
> SalaryMultiplier = true,
> ```

### Hourlyloss

> This is how much you will lose per hour when you're off duty.
>
> ```lua
> Hourlyloss = 0.1,
> ```

### Multiplier

> Here you can add the different jobs, along with their maximum multiplier and how much should be added per hour.
>
> ```lua
>     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.
>
> ```lua
> Config.BossGrades = {
>     "boss",
>     "chef"
> }
> ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yecoyz-resources.gitbook.io/yecoyz/free-resources/duty/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
