Koja Scripts

Commands and keybinds

Every chat and console command, key mapping and in-CAD shortcut of koja-dispatcher, with the config option that changes each.

Commands and keybinds

Key mappings are registered with FiveM, so every player can change them in Settings > Key Bindings > FiveM. The config value is only the default for players who never changed it.

Player commands

CommandWhoWhat it doesChange it with
/911 <message>EveryoneCalls 911 with your live position. Another /911 within the reply window is added to the same call.Config.Calls.playerCommand
/code4Field units on sceneClears the incident you are on scene at.Fixed name
/unitstatus available|busy|unavailableField unitsSets your unit status.Fixed name
/tencode <code>Field unitsRuns a field status code: 8, 6, 97, 23, 7, 15, 99 or backup (10-8 style works too). Without an argument it opens the quick menu.Config.MdtStatus.command (empty removes it)
/hangup911Callers and units on a voice 911 callLeaves the voice call.Config.Voice.hangupCommand
/cadAllowed dispatcher jobsStarts a remote shift without a station. Only when the remote CAD is on.Config.Dispatcher.remoteCommand (empty removes it), admin access.remote

Admin commands

CommandWhereWhat it doesChange it with
/dispatchadminIn gameOpens the admin menu. Needs a group from Config.Admin.groups or the ACE koja-dispatcher.admin.Config.Admin.command
dispatchcheckServer console (or in game)Health check with [ OK ] / [FAIL] lines. See Installation.Fixed name
dispatchtest [scenario]Server console (or in game)Rings a generated call at once: the given scenario, or a random one. Unknown names print unknown scenario.Fixed name
/dispatchscanIn game onlyScans the terrain height for the 3D map from your client and saves it on the server. The release already ships a scan; only needed after big map changes. See Troubleshooting.Config.Map3D.scanCommand

dispatchcheck, dispatchtest and dispatchscan are restricted commands. From the server console they always work. In game a player needs the ACE for the command (for example add_ace group.admin command.dispatchtest allow, or command for all) and the admin or god group.

Key mappings

Key mappingDefault keyWhat it doesChange it with
Dispatch: open CADF7Reopens the minimised CAD while you are on shift (at your station, or anywhere with the remote CAD).Config.Keys.console
Dispatch: acknowledge call / GPSYField unit: acknowledges the assignment and sets the waypoint.Config.Keys.acknowledge
Dispatch: report code 4unboundSame as /code4.Config.Keys.code4
Status codes: quick menuunboundOpens the field status code menu.Config.MdtStatus.menuKey
Status code: 10-8 AvailableunboundConfig.MdtStatus.codes[].key
Status code: 10-6 Busyunbound
Status code: 10-97 En routeunbound
Status code: 10-23 On sceneunbound
Status code: 10-7 Out of serviceunbound
Status code: 10-15 Suspect in custodyunbound
Status code: backup Need backupunbound
Status code: 10-99 Panic / officer needs helpunbound

The command names behind the mappings are +koja_dispatch_console, +koja_dispatch_ack, +koja_dispatch_code4, +koja_code_menu and +koja_code_<code> with non-alphanumeric characters replaced by _ (+koja_code_10_8, +koja_code_backup, +koja_code_10_99...).

Field status codes

The status code keys are unbound by default so they do not clash with other scripts. Set Config.MdtStatus.bindSuggested = true to bind the suggested keys instead:

CodeSuggested key
10-8Numpad 1
10-6Numpad 2
10-97Numpad 3
10-23Numpad 4
10-7Numpad 5
10-15Numpad 6
backupNumpad 8
10-99Numpad 9
Quick menuF10 (Config.MdtStatus.suggestedMenuKey)

To give one code a fixed default key, set its key, for example { id = '10-99', action = 'panic', key = 'F9', ... }. In the quick menu, press the code's number (1-9) or click it; Esc or Backspace closes it. The codes, the menu and the HUD chip are switched with the admin settings mdt_status.enabled and mdt_status.hud.

At the station

KeyAction
EStart a shift (when no target resource is running). With ox_target, koja-interactions or qb-target use the target option Start dispatch shift. The prompt only shows for players whose job may dispatch.
Space or EnterSkip the shift intro (Config.Cinematic.skippable).

In the CAD

The ? button in the top bar shows these controls.

InputAction
Left clickSelect a unit
Left dragBox-select units
Shift + left clickAdd to the selection
Right clickSend the selected units (to an incident, or to a map point as staging)
Right drag / middle mousePan the map
Wheel, + / -Zoom
Ctrl + 1-9Save the selection as a control group
1-9Select a control group and centre on it
Double click, FFollow a unit
SpaceAnswer the oldest ringing call
TabCycle active incidents (by priority)
HRecall the selected units to their station
MPlace an incident on the map
W A S D or arrow keysPan the map
BOpen or close the MDT workspace (admin mdt_tools.monitor)
Q / E, Alt + right dragRotate the 3D view
EscStep back: close help, cancel placing, clear the selection or the follow camera, close the incident, then minimise the CAD

Shortcuts do nothing while you type in a text field; Esc leaves the field.

Map tools

InputAction
Patrol polygon: clickAdd a point
Patrol polygon: double click, Enter or right clickFinish the zone
Patrol polygon: BackspaceUndo the last point
Patrol circle: click, clickCentre, then radius
Spike strip / roadblock: click a roadPlace the tool. Shift + click keeps the tool active for another one.
EscCancel the tool

Station placing

The gizmo keys (Tab, Q / E, G, R, S, F, Enter, Esc) are listed in Admin menu.