> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/watch-admin-menu/configuration/config-walkthrough.md).

# Config walkthrough

`cfg.lua` holds every setting a server owner edits. It is shared, so every player downloads it: **never put a key, token or webhook here** (see [server.cfg lines](https://docs.rainmad.com/resources/watch-admin-menu/configuration/server.cfg-lines)). Restart rm\_watch after a change.

This page lists the options that matter, grouped. Each feature page has the full block for its feature.

{% hint style="info" %}
A few values are only defaults: once staff change them in the menu or on the web panel (the cleanup interval, the whitelist mode), the stored value wins over `cfg.lua`.
{% endhint %}

## Language and look

| Option                 | Default     | What it does                                                                                                                     |
| ---------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `cfg.locale`           | `'en'`      | Language of the menu and every message. See [Languages](https://docs.rainmad.com/resources/watch-admin-menu/features/languages). |
| `cfg.nui.primaryColor` | `'#fafafa'` | Accent colour of the menu, hex or `rgb()`.                                                                                       |
| `cfg.power.theme`      | `'dark'`    | `'dark'`, `'gray'` or `'light'`, for staff who never picked their own.                                                           |

## Bridges

`cfg.bridge` picks your framework, inventory, keys, medical, weather, clothing and notification scripts. See [Bridges](https://docs.rainmad.com/resources/watch-admin-menu/configuration/bridges).

## Menu, keys and roles: `cfg.admin`

| Option                         | Default                                                  | What it does                                                                                                                                     |
| ------------------------------ | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `command`, `key`               | `'watch'`, `'F6'`                                        | Opens the admin menu.                                                                                                                            |
| `quickCommand`, `quickKey`     | `'watchquick'`, `'F7'`                                   | Opens the quick wheel.                                                                                                                           |
| `inspectCommand`, `inspectKey` | `'watchinspect'`, `'F8'`                                 | Toggles the inspector.                                                                                                                           |
| `aces`                         | `rm_watch.owner`, `rm_watch.admin`, `rm_watch.moderator` | The ace object for each built-in role.                                                                                                           |
| `frameworkAdmins`              | `'admin'`                                                | Role for your framework's own admins: `'admin'`, `'moderator'` or `false`.                                                                       |
| `protectStaff`                 | `true`                                                   | Staff cannot act on staff of the same or a higher rank.                                                                                          |
| `permissions`                  | `{}`                                                     | Lowest role per action, for example `ban = 'moderator'`.                                                                                         |
| `discord`                      | empty                                                    | Guild id and role ids for Discord role sync. See [Discord roles](https://docs.rainmad.com/resources/watch-admin-menu/permissions/discord-roles). |
| `duty`                         | `/duty`, not required                                    | `required = true` makes staff go on duty before any action. `tag` shows a role tag over on duty staff. `clothing` sets an optional uniform.      |
| `locations`                    | 7 places                                                 | The Teleport tab's list, `{ label, coords = vector4(...) }`.                                                                                     |

{% hint style="info" %}
A key in `cfg.lua` is only the default. Each player can rebind it in **Settings > Key Bindings > FiveM**, and a player who already joined keeps the key they had. Changing a default only reaches players who never had that binding.
{% endhint %}

## Jail: `cfg.jail`

| Option       | Default                                              | What it does                                                                                                               |
| ------------ | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `cells`      | Bolingbroke yard, Bolingbroke cell, Mission Row cell | `{ label, coords, radius }`. The first is the default. A jailed player who leaves the radius is pulled back.               |
| `release`    | outside Bolingbroke                                  | Where a player goes when released.                                                                                         |
| `maxMinutes` | `1440`                                               | Longest jail.                                                                                                              |
| `bucketBase` | `0`                                                  | `0` keeps jailed players in the shared world. Above 0, each cell gets its own routing bucket (`bucketBase` + cell number). |

## Punishments: `cfg.admin.punish`

Reason presets and duration chips for warn, kick, jail, ban, mute and community service. See [Punishments](https://docs.rainmad.com/resources/watch-admin-menu/features/punishments).

## Tickets: `cfg.reports` and `cfg.tickets`

| Option                           | Default      | What it does                                                   |
| -------------------------------- | ------------ | -------------------------------------------------------------- |
| `cfg.reports.command`            | `'report'`   | The command players open a ticket with.                        |
| `cfg.reports.perHour`            | `5`          | Tickets one player may open per hour.                          |
| `cfg.tickets.categories`         | 5 categories | What a player picks, each with a starting priority.            |
| `cfg.tickets.firstAnswerMinutes` | `10`         | A ticket nobody answered for this long is marked overdue.      |
| `cfg.tickets.transcript`         | `true`       | Send the thread to the `reports` webhook when a ticket closes. |

The rest is on [Tickets](https://docs.rainmad.com/resources/watch-admin-menu/features/tickets).

## Moderation

| Block             | What it sets                                                         | Page                                                                                                                                         |
| ----------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `cfg.mute`        | Longest mute, and whether voice mutes use pma-voice.                 | [Moderation](https://docs.rainmad.com/resources/watch-admin-menu/features/mutes-community-service-whitelist-and-appeals#mute)                |
| `cfg.commserv`    | Community service zones, spots and task types.                       | [Moderation](https://docs.rainmad.com/resources/watch-admin-menu/features/mutes-community-service-whitelist-and-appeals#community-service)   |
| `cfg.whitelist`   | Mode (`'off'`, `'on'`, `'discord'`), Discord roles, refusal message. | [Moderation](https://docs.rainmad.com/resources/watch-admin-menu/features/mutes-community-service-whitelist-and-appeals#whitelist)           |
| `cfg.appeals`     | The appeal link on the ban screen.                                   | [Moderation](https://docs.rainmad.com/resources/watch-admin-menu/features/mutes-community-service-whitelist-and-appeals#ban-appeals)         |
| `cfg.screenshot`  | `upload = 'discord'` also stores screenshots in Discord.             | [Player actions](https://docs.rainmad.com/resources/watch-admin-menu/features/player-actions-and-the-inspector#screenshots-and-screen-check) |
| `cfg.screencheck` | The opt in screen check, off by default.                             | [Player actions](https://docs.rainmad.com/resources/watch-admin-menu/features/player-actions-and-the-inspector#screenshots-and-screen-check) |

## Server

| Block         | What it sets                                                                                       | Page                                                                                                                         |
| ------------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `cfg.queue`   | The connection queue, off by default. Turn off the stock `hardcap` resource when you switch it on. | [Admin menu](https://docs.rainmad.com/resources/watch-admin-menu/features/the-admin-menu#queue)                              |
| `cfg.cleanup` | Removal of unused vehicles.                                                                        | [Admin menu](https://docs.rainmad.com/resources/watch-admin-menu/features/the-admin-menu#server)                             |
| `cfg.heatmap` | The anonymous population map on the dashboard.                                                     | [Dashboard](https://docs.rainmad.com/resources/watch-admin-menu/features/dashboard-and-server-metrics#heat-map)              |
| `cfg.perf`    | Hitch threshold, profile length, restart countdowns and warnings.                                  | [Dashboard](https://docs.rainmad.com/resources/watch-admin-menu/features/dashboard-and-server-metrics#restarting-the-server) |

## Staff tools

| Block          | What it sets                                                            | Page                                                                                                                             |
| -------------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `cfg.power`    | Palette command, quick wheel entries, hotkey slots, Spawn model, theme. | [Quick wheel, palette and hotkeys](https://docs.rainmad.com/resources/watch-admin-menu/features/quick-wheel-palette-and-hotkeys) |
| `cfg.spectate` | Which voice script spectate listens through.                            | [Spectate](https://docs.rainmad.com/resources/watch-admin-menu/features/spectate)                                                |
| `cfg.chat`     | Staff chat channels and retention.                                      | [Staff chat](https://docs.rainmad.com/resources/watch-admin-menu/features/staff-chat)                                            |
| `cfg.voice`    | Voice notes and the staff voice channel.                                | [Voice](https://docs.rainmad.com/resources/watch-admin-menu/features/voice-notes-and-staff-voice)                                |
| `cfg.roles`    | `pushToDiscord`: also give the mapped Discord role.                     | [Discord roles](https://docs.rainmad.com/resources/watch-admin-menu/permissions/discord-roles)                                   |

## Vehicles, economy and community

| Block           | What it sets                                          | Page                                                                                                     |
| --------------- | ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `cfg.vehicles`  | Garage script, impound fee, list size.                | [Vehicles](https://docs.rainmad.com/resources/watch-admin-menu/features/vehicles)                        |
| `cfg.data`      | Rich list size, billing scripts, ESX date format.     | [Economy and data](https://docs.rainmad.com/resources/watch-admin-menu/features/economy-and-data)        |
| `cfg.community` | `/joinevent`, `/vote`, marker and team tag distances. | [Community](https://docs.rainmad.com/resources/watch-admin-menu/features/events-polls-teams-and-markers) |

## Capture

| Block          | What it sets                 | Page                                                                                                                |
| -------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `cfg.replay`   | Auto replay, off by default. | [Auto replay and live view](https://docs.rainmad.com/resources/watch-admin-menu/features/auto-replay-and-live-view) |
| `cfg.liveview` | Live view, off by default.   | [Auto replay and live view](https://docs.rainmad.com/resources/watch-admin-menu/features/auto-replay-and-live-view) |
