> For the complete documentation index, see [llms.txt](https://5code.gitbook.io/5code-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://5code.gitbook.io/5code-docs/5code-loadouts/configuration/jobs-grades-units.md).

# jobs grades units

5Code Loadouts ties access to your framework's job system.

## Config.Job

```lua
Config.Job = 'police'
```

The single job name allowed to interact with the armory NPC.

## Config.BossGrades

```lua
Config.BossGrades = { 3, 4 }
```

Grades listed here see the in-game **Management UI** at the NPC.

## Config.AdminAce

```lua
Config.AdminAce = 'loadouts.admin'
```

Add the matching ACE in `server.cfg`:

```cfg
add_ace identifier.license:YOUR_LICENSE_HERE loadouts.admin allow
```

Admins can access the management UI regardless of grade and can run the admin commands.

## Config.Units

```lua
Config.Units = { 'patrol', 'k9', 'swat', 'detective' }
```

The unit IDs available in the system. Loadouts and grade mappings reference these IDs.

## Config.GradeNames

```lua
Config.GradeNames = {
    [0] = 'Cadet',
    [1] = 'Officer',
    [2] = 'Sergeant',
    [3] = 'Lieutenant',
    [4] = 'Chief'
}
```

Must match the grades defined in your framework job.

## Config.DefaultGradeMap

```lua
Config.DefaultGradeMap = {
    [0] = { 'patrol' },
    [1] = { 'patrol', 'k9' },
    [2] = { 'patrol', 'k9', 'detective' },
    [3] = { 'patrol', 'k9', 'detective', 'swat' },
    [4] = { 'patrol', 'k9', 'detective', 'swat' }
}
```

This map is only used as a **seed** on first start. After that, the mapping is managed live from the in-game UI and stored in the database.


---

# 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, and the optional `goal` query parameter:

```
GET https://5code.gitbook.io/5code-docs/5code-loadouts/configuration/jobs-grades-units.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
