List of commands

Each command has its explanation on the right side, if any command does not work, you can check if you used its syntax correctly, you can later claim it in a ticket.


Default configuration

Default (unchangeable) commands can be configured in the config.lua file.

Config.Commands = {
     ["OpenLargue"] = "toggleopendispatch", -- Prefer not to change this
     ["OpenSmall"] = "togglesmalldispatch", -- Prefer not to change this
     ["MoveSmall"] = "movesmalldispatch", -- Command to move the small dispatch
     ["DisableSpeedRadar"] = 'disablespeedradar', -- Command to disable speed radar
     ["OpenMdt"] = 'openmdt' -- Command to open the police MDT
}

In the commands.lua file located in the client/custom/misc/ folder, you will find a list of commands that you can edit according to your needs.

Command
Description

/police [message]

Sends a dispatch call to the police (similar to /enterno)

/ambulance [message]

Same thing but for medics.

/mechanic [message]

Same thing but for mechanics.

/panic [message]

Panic call sent by a police officer to all other police officers.


How to execute commands using code

This step is very simple, you can use ExecuteCommand('command') anywhere in your code, but for this you should read the ExecuteCommand usage guide at the following link.

Last updated