> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexdev.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Commands

> All commands are restricted to Config.AdminGroup (default group.admin). Command names come from Config.Commands — rename them in config.lua.

All commands are restricted to `Config.AdminGroup` (default `group.admin`). Command names come from `Config.Commands` — rename them in `config.lua`.

## Chat commands

| Command                                               | What it does                                                                          |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `/whitelistmenu`                                      | Opens the admin UI.                                                                   |
| `/addwhitelist <item\|weapon> <name> <scope> <value>` | Adds an entry.                                                                        |
| `/removewhitelist <item\|weapon> <name>`              | Removes **all** scopes for that item/weapon. Use the menu to remove a specific scope. |
| `/listwhitelist`                                      | Lists every entry with its scope.                                                     |

### Arguments for `/addwhitelist`

| Argument         | Value                                                                                                                                                                     |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `<item\|weapon>` | Literally `item` or `weapon`.                                                                                                                                             |
| `<name>`         | Item or weapon name (e.g. `radio` or `WEAPON_PISTOL`).                                                                                                                    |
| `<scope>`        | `job` or `identifier`.                                                                                                                                                    |
| `<value>`        | The job name (`police`), or a player **server ID** (`12`), or an **identifier** (`steam:110000...` / citizenid). Server IDs are resolved to the identifier automatically. |

### Examples

```
/addwhitelist item radio job police
/addwhitelist item radio identifier ABC123
/addwhitelist weapon WEAPON_HEAVYRIFLE identifier 12
/removewhitelist item radio
/listwhitelist
```

## Keybinding

`Config.MenuKeybind` in `config.lua` is the default key for `/whitelistmenu`. Empty = none. Players can still bind it themselves from **FiveM Settings → Key Bindings → FiveM**.
