> For the complete documentation index, see [llms.txt](https://tru-development.gitbook.io/tru-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tru-development.gitbook.io/tru-development-docs/tru-multijob/configuration.md). Agents can also search and read this documentation through its [MCP server](https://tru-development.gitbook.io/tru-development-docs/~gitbook/mcp).

# Configuration

Documentation / Tru-Multijob

## Configuration

Edit `config.lua`.

```lua
Config.Framework = 'auto'
Config.Command = 'multijob'
Config.Keybind = 'F6'
Config.MaxJobs = 4
```

### UI <a href="#ui" id="ui"></a>

```lua
Config.UI.theme = 'steel'
Config.UI.allowThemePicker = true
Config.UI.opacity = 0.94
Config.UI.panelScale = 0.88
```

### Optional integrations <a href="#optional-integrations" id="optional-integrations"></a>

Boss menus and duty zones are disabled by default. Enable `Config.BossMenus.enabled` or `Config.DutyZones.enabled` only when needed. Boss menu choices: `esx_society`, `qb-bossmenu`, `qbx_management`. Configure locations using the examples in the supplied config.

### Configuration reference <a href="#configuration-reference" id="configuration-reference"></a>

The following settings are present in the supplied configuration. Edit the existing entries rather than adding duplicate definitions. Table settings contain additional options in the original configuration file.

| Setting                        | Supplied value or type |
| ------------------------------ | ---------------------- |
| `Config.Framework`             | `'auto'`               |
| `Config.Inventory`             | `'auto'`               |
| `Config.Notify`                | `'auto'`               |
| `Config.Command`               | `'multijob'`           |
| `Config.Keybind`               | `'F6'`                 |
| `Config.PanelSide`             | `'right'`              |
| `Config.Interact`              | Configuration table    |
| `Config.UI`                    | Configuration table    |
| `Config.Locale`                | `'en'`                 |
| `Config.OpenCooldownSeconds`   | `3`                    |
| `Config.ActionCooldownSeconds` | `2`                    |
| `Config.SessionExpireSeconds`  | `45`                   |
| `Config.MaxJobs`               | `4`                    |
| `Config.AdminAce`              | `'tru.multijob.admin'` |
| `Config.AdminBypassSlots`      | `false`                |
| `Config.PruneInvalidJobs`      | `false`                |
| `Config.AllowQuitLastJob`      | `true`                 |
| `Config.UnemployedJob`         | Configuration table    |
| `Config.IgnoredJobs`           | Configuration table    |
| `Config.ProtectedJobs`         | Configuration table    |
| `Config.SlotPermissions`       | Configuration table    |
| `Config.AccessItem`            | Configuration table    |
| `Config.Target`                | Configuration table    |
| `Config.BossMenus`             | Configuration table    |
| `Config.DutyZones`             | Configuration table    |
| `Config.Categories`            | Configuration table    |
| `Config.JobCards`              | Configuration table    |
| `Config.PublicJobs`            | Configuration table    |
| `Config.HourlyRates`           | Configuration table    |
| `Config.DutyTracking`          | Configuration table    |
| `Config.Webhook`               | Configuration table    |
| `Config.Text`                  | Configuration table    |

### Testing changes <a href="#testing-changes" id="testing-changes"></a>

Check that the job and grade exist in your framework before adding them. Test slot limits with a normal player rather than an administrator. Restart the resource after editing configuration and check the console for Lua syntax errors. Keep a copy of your previous working settings.

### Additional configuration reference <a href="#additional-configuration-reference" id="additional-configuration-reference"></a>

The following top-level declarations are taken from the supplied configuration. Table openings indicate a nested configuration block; edit its existing fields in the original file rather than copying an incomplete table. Review inline comments and preserve Lua syntax.

```lua
Config.Framework = 'auto' -- auto, qbcore, qbox, esx
Config.Inventory = 'auto' -- auto, ox_inventory, qb, esx, none
Config.Notify = 'auto' -- auto, ox_lib, qbox, qb, esx, native
Config.Command = 'multijob'
Config.Keybind = 'F6'
Config.PanelSide = 'right' -- right, left
Config.Interact = {
Config.UI = {
Config.Locale = 'en'
Config.OpenCooldownSeconds = 3
Config.ActionCooldownSeconds = 2
Config.SessionExpireSeconds = 45
Config.MaxJobs = 4 -- default saved job slots; change this to fit your server
Config.AdminAce = 'tru.multijob.admin'
Config.AdminBypassSlots = false
Config.PruneInvalidJobs = false
Config.AllowQuitLastJob = true
Config.UnemployedJob = {
Config.IgnoredJobs = {
Config.ProtectedJobs = {
Config.SlotPermissions = {
Config.AccessItem = {
Config.Target = {
Config.BossMenus = {
Config.DutyZones = {
Config.Categories = {
Config.JobCards = {
Config.PublicJobs = {
Config.HourlyRates = {
Config.DutyTracking = {
Config.Webhook = {
Config.Text = {
```

### Safe configuration workflow <a href="#safe-configuration-workflow" id="safe-configuration-workflow"></a>

Change one setting at a time on a staging server. Keep a known-working copy of the configuration, restart the resource after changes and test the affected workflow with a normal player. If a change causes a startup error, restore the previous configuration and inspect the first error in the console.

### Choosing sensible employment rules <a href="#choosing-sensible-employment-rules" id="choosing-sensible-employment-rules"></a>

The supplied maximum is four saved jobs. Slot permissions can raise this to five or eight through ACE. AdminBypassSlots is false by default, and police and ambulance are protected jobs in the supplied configuration. Review IgnoredJobs and UnemployedJob together so that clocking out does not create unwanted saved employment entries. The default UI hides the public browser, search and summary; enable these individually if your community needs them.
