> For the complete documentation index, see [llms.txt](https://hane-mod-studio.gitbook.io/hane-mod-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hane-mod-studio.gitbook.io/hane-mod-studio/hane-scripts/hane-dispatch/commands.md).

# Commands

Chat Commands

#### `/dispatch`

Opens the full-screen dispatch tablet interface.

* **Permission:** Must be on-duty in a configured job.
* **Configurable:** Change the command name via `Config.TabletCommand`.
* **Access method:** Can be set to `'item'`, `'command'`, or `'both'` via `Config.TabletOpenMethod`.

***

#### `/kod [code]`

Sends a KOD/CODE alert to all relevant on-duty personnel.

**Usage:**

```
/kod 0     → CODE 0: Drop everything, emergency situation (Officer down)
/kod 3     → CODE 3: Emergency call, respond with lights and sirens
/kod 99    → CODE 99: High priority situation, all units respond
```

* **Permission:** Must be on-duty in a configured job.
* **Cooldown:** Configurable via `Config.KodCooldown` (default: 5000ms).
* **Configurable:** Change the command name via `Config.KodCommand`.

The code alert includes the officer's name, location (street + zone), and coordinates for GPS waypoint.

***

#### `/testdispatch`

Triggers a test dispatch alert with randomized data for debugging purposes.

* **Permission:** Admin only (console or authorized players).
* **Purpose:** Verify the dispatch system is working correctly.

***

#### `/dispatch_focus`

Toggles NUI focus mode for the side panel notifications. Useful when you need to interact with notification buttons without opening the full tablet.

***

### Keybinds

#### `E` — Quick Respond

When a dispatch notification is visible, press `E` to instantly respond to the most recent alert. This will:

1. Mark you as a responder on the dispatch
2. Set a GPS waypoint to the alert location
3. Notify other responders that you are en route

> Quick respond works while the side panel notification is visible. The notification duration is controlled by `Config.NotifyDuration`.
