Skip to content

Retro Dispatch

This section contains commands, events, and exports related to the script that you should be aware of. These are detailed separately for the client and server.




Key bindings can be customized for each player in GTA 5 Settings > Keybinds > Fivem. These values are set by default. These key assignments will be active when using the script for the first time after initial setup.

ActionDefault Key
Open Dispatch:[F10]
Open/Close Dispatch Cursor:[F11]



Please ensure you follow this example to avoid any issues when attempting to send alerts.

example.lua
local data = {
code = 'A-12',
title = 'House Robbery',
icon = 'FaHouseChimneyCrack', -- for icons -> https://react-icons.github.io/react-icons/icons/fa6/
details = {},
jobs = { ['police'] = true, ['sheriff'] = true }
}
-- Export
exports['rs_dispatch']:sendAlert(data)
-- Event
TriggerEvent('rs-dispatch:client:sendAlert', data)


If you would like to enter details when sending a alert, or if you would like to learn how the detail system works

example.lua
TriggerEvent('rs-dispatch:client:sendAlert', {
code = 'A-12',
title = 'House Robbery',
icon = 'FaHouseChimneyCrack', -- for icons -> https://react-icons.github.io/react-icons/icons/fa6/
details = { -- it must be array
{
id = 'UNIQUE_ID', -- id must be unique
icon = 'FaMask',
label = 'The appearance of the robbers',
value = { { 'They are wearing a mask', 'In black' }, { 'They are wearing a baggie jeans', 'In blue' } } -- You can delete and add as many details as you wish.
}
},
jobs = { ['police'] = true, ['sheriff'] = true }
})