> For the complete documentation index, see [llms.txt](https://docs.0resmon.org/0resmon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/frkn-police-job/grade-settings.md).

# Grade Settings

## Grade Settings

This script comes with `0-4` grades by default. If your server uses more ranks, update the grade settings for your framework.

Example: 10 ranks usually means grades `0-9`.

### Framework Guides

* QBCore
* QBox / QBX
* ESX

***

### QBCore

#### 1. Add Grades In QBCore

File:

```lua
qb-core/shared/jobs.lua
```

Find the `police` job and add all grades.

Example:

```lua
grades = {
    ['0'] = { name = 'Recruit', payment = 50 },
    ['1'] = { name = 'Officer', payment = 75 },
    ['2'] = { name = 'Senior Officer', payment = 90 },
    ['3'] = { name = 'Corporal', payment = 105 },
    ['4'] = { name = 'Sergeant', payment = 120 },
    ['5'] = { name = 'Lieutenant', payment = 135 },
    ['6'] = { name = 'Captain', payment = 150 },
    ['7'] = { name = 'Commander', payment = 170 },
    ['8'] = { name = 'Assistant Chief', isboss = true, payment = 190 },
    ['9'] = { name = 'Chief', isboss = true, payment = 220 },
}
```

#### 2. Update Police Job Grades In This Script

File:

```lua
shared/config.lua
```

Find:

```lua
FRKN.Departments
```

Update the `grades` list with the same ranks.

#### 3. Set Boss Menu Access

File:

```lua
shared/config.lua
```

Find:

```lua
BossOpenGrade = {3,4}
```

Example:

```lua
BossOpenGrade = {8,9}
```

If grade 7 and higher should open the boss menu:

```lua
BossOpenGrade = {7}
```

#### 4. Update Script Grade SQL

File:

```sql
pdall.sql
```

Find:

```sql
frkn_pd_job_grades
```

Add the same police grades there.

#### 5. Update Grade-Based Features

File:

```lua
shared/config.lua
```

Check and update these sections:

```txt
FRKN.Items
FRKN.Garage
FRKN.Heli
FRKN.ActionMenu
FRKN.CommunicationService
FRKN.Cloths
```

Use your new grade list where needed:

```lua
grade = {0,1,2,3,4,5,6,7,8,9}
ranks = {0,1,2,3,4,5,6,7,8,9}
```

#### 6. Restart

Restart `qb-core` and `frkn-policejob`, or restart the server.

***

### QBox / QBX

#### 1. Add Grades In QBox

File:

```lua
qbx_core/shared/jobs.lua
```

Find the `police` job and add all grades.

QBox uses number keys:

```lua
grades = {
    [0] = { name = 'Recruit', payment = 50 },
    [1] = { name = 'Officer', payment = 75 },
    [2] = { name = 'Senior Officer', payment = 90 },
    [3] = { name = 'Corporal', payment = 105 },
    [4] = { name = 'Sergeant', payment = 120 },
    [5] = { name = 'Lieutenant', payment = 135 },
    [6] = { name = 'Captain', payment = 150 },
    [7] = { name = 'Commander', payment = 170 },
    [8] = { name = 'Assistant Chief', isboss = true, bankAuth = true, payment = 190 },
    [9] = { name = 'Chief', isboss = true, bankAuth = true, payment = 220 },
}
```

Do not use QBCore style `['0']` keys in QBox.

For boss ranks, use:

```lua
isboss = true
bankAuth = true
```

#### 2. Update Police Job Grades In This Script

File:

```lua
shared/config.lua
```

Find:

```lua
FRKN.Departments
```

Update the `grades` list with the same ranks.

Inside this script, keep the existing string key style:

```lua
['0'] = { name = "Recruit", payment = 50 }
```

#### 3. Set Boss Menu Access

File:

```lua
shared/config.lua
```

Find:

```lua
BossOpenGrade = {3,4}
```

Example:

```lua
BossOpenGrade = {8,9}
```

#### 4. Update Script Grade SQL

File:

```sql
pdall.sql
```

Find:

```sql
frkn_pd_job_grades
```

Add the same police grades there.

#### 5. Update Grade-Based Features

File:

```lua
shared/config.lua
```

Check and update these sections:

```txt
FRKN.Items
FRKN.Garage
FRKN.Heli
FRKN.ActionMenu
FRKN.CommunicationService
FRKN.Cloths
```

Use your new grade list where needed:

```lua
grade = {0,1,2,3,4,5,6,7,8,9}
ranks = {0,1,2,3,4,5,6,7,8,9}
```

#### 6. Restart

Restart `qbx_core` and `frkn-policejob`, or restart the server.

***

### ESX

#### 1. Add Grades In ESX

In ESX, police ranks are usually managed from your ESX job system or database panel.

Make sure the `police` job has every grade you want to use.

Example rank setup:

```txt
0 - Recruit
1 - Officer
2 - Senior Officer
3 - Corporal
4 - Sergeant
5 - Lieutenant
6 - Captain
7 - Commander
8 - Assistant Chief
9 - Chief
```

Important ESX values:

```txt
job name: police
grade number: 0-9
grade name/label: your rank name
salary/payment: your payment amount
```

#### 2. Update Police Job Grades In This Script

File:

```lua
shared/config.lua
```

Find:

```lua
FRKN.Departments
```

Update the `grades` list with the same ranks.

#### 3. Set Boss Menu Access

File:

```lua
shared/config.lua
```

Find:

```lua
BossOpenGrade = {3,4}
```

Example:

```lua
BossOpenGrade = {8,9}
```

#### 4. Update Script Grade SQL

File:

```sql
pdall.sql
```

Find:

```sql
frkn_pd_job_grades
```

Add the same police grades there.

#### 5. Update Grade-Based Features

File:

```lua
shared/config.lua
```

Check and update these sections:

```txt
FRKN.Items
FRKN.Garage
FRKN.Heli
FRKN.ActionMenu
FRKN.CommunicationService
FRKN.Cloths
```

Use your new grade list where needed:

```lua
grade = {0,1,2,3,4,5,6,7,8,9}
ranks = {0,1,2,3,4,5,6,7,8,9}
```

#### 6. Refresh / Restart

After changing ESX jobs, refresh jobs or restart the server/resource.

***

### Quick Checklist

For every framework:

1. Add the grades in your framework.
2. Update `FRKN.Departments`.
3. Update `BossOpenGrade`.
4. Update `frkn_pd_job_grades` in `pdall.sql`.
5. Update item, vehicle, action menu, community service, and clothing grades.
6. Restart the needed resources.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/frkn-police-job/grade-settings.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.
