Commands and keybinds
Commands and keys are registered by the resource. Keys use FiveM key mappings, so every player can rebind them in the game settings under Settings, Key Bindings, FiveM. The default key is only a starting point. Most names come from the config and can be changed or set to an empty string to disable them.
Commands
| Command | Default key | Who | What it does | Config |
|---|---|---|---|---|
/mdt | F6 | Players with a department job | Open or close the MDT. | Config.Open.command, Config.Open.keybind |
/mdtduty | none | Officers | Toggle duty. | Config.Duty.toggleCommand |
/mdtweb | none | Officers, and citizens if allowed | Gives a one-time login code and the web portal address. 10 second cooldown. | Config.Web.command |
/mdtphoto | none | Everyone | Refresh your own profile photo. | Config.Avatars.command |
/citation [id] | none (optional) | Ranks with citations.create | Open the ticket book. With a player id, that player is preselected. | Config.Citations.command, Config.Citations.key |
/bodycam [mode] | F7 | Officers | Start or stop the body camera. Modes: on, off, rec, stop. Without a mode it toggles. | Config.Bodycams.command, Config.Bodycams.key |
/911 <message> | none | Everyone | Emergency call (priority 1). A message is required. | Config.Dispatch.publicCommands |
/311 <message> | none | Everyone | Non-emergency call (priority 3). | Config.Dispatch.publicCommands |
/911a <message> | none | Everyone | Anonymous emergency call. | Config.Dispatch.anonymousCommand |
/mdtinteract | Left Alt | Ranks with citizens.view or citations.create | Open the interaction menu (ask for ID, citation, run plate, parking citation, open MDT). | Config.Interact.command, Config.Interact.key |
/mdtdebug [action] [option] | none | Holders of the debug ace | Demo and test tools. See Demo mode. | Config.DebugTools |
The public call commands are set in Config.Dispatch.publicCommands. You can add more entries with their own command name, code, title and priority.
Keybinds
| Action | Default key | Scope | Config |
|---|---|---|---|
| Open MDT | F6 | Everywhere | Config.Open.keybind |
| Panic button (10-99) | F9 | On duty officers | Config.Dispatch.panicKey |
| Body camera start or stop | F7 | Officers | Config.Bodycams.key |
| Interaction menu | Left Alt | Officers | Config.Interact.key |
| Quick dispatch: respond | Y | While a call is shown | Config.QuickDispatch.keys.respond |
| Quick dispatch: dismiss | Delete | While a call is shown | Config.QuickDispatch.keys.dismiss |
| Quick dispatch: previous call | Page Up | While a call is shown | Config.QuickDispatch.keys.previous |
| Quick dispatch: next call | Page Down | While a call is shown | Config.QuickDispatch.keys.next |
| Quick dispatch: show or hide | Home | Everywhere | Config.QuickDispatch.keys.toggle |
| ALPR panel on or off | F10 | In an ALPR vehicle | Config.Anpr.vehicle.keys.toggle |
| ALPR lock front plate | Up | In an ALPR vehicle | Config.Anpr.vehicle.keys.lockFront |
| ALPR lock rear plate | Down | In an ALPR vehicle | Config.Anpr.vehicle.keys.lockRear |
| ALPR open locked vehicle in MDT | Right | In an ALPR vehicle | Config.Anpr.vehicle.keys.open |
| Ticket book | none | Everywhere | Config.Citations.key |
Fixed keys inside viewers
| Viewer | Keys |
|---|---|
| CCTV camera | Backspace exit, E next camera, Q previous camera, scroll or Page Up and Page Down zoom, left mouse button lock on a vehicle, G open locked vehicle, Enter confirm |
| CCTV placement | Shift and Ctrl fast and slow, E and Q up and down, G toggle prop, arrow keys rotate and cycle the prop |
| Bodycam live view | Backspace exit, E next, Q previous |
These come from Config.Cameras.keys and Config.Bodycams.keys as game control ids.
Chat commands from other resources
koja-mdt does not register jail, fine or billing commands. Those belong to your jail and banking scripts. See Integrations.