Opto Studios https://discord.gg/rnQePyNK4x
Op-Dispatch
ESX & QBCore FiveM dispatch
- Make sure to change your language in Config.Locale and Config.Framework.
- At the bottom of the config.lua file you will see Config.Jobs and Config.AllowedJobs, you can add whatever job you're interested to be able to use the dispatch.
Config = {}
Config.Sound = true -- True to listen to the sound and false to don't.
Config.Framework = 'QBCore' -- 'ESX' or 'QBCore'.
Config.Locale = 'en' -- 'en' or 'es'.
Config.CommandShow = {
command = 'show',
description = 'Open Dispatch',
}
Config.VehicleRob = {
command = 'vehrob',
description = 'Vehicle theft',
}
Config.CommandPanic = {
command = 'p',
description = 'Emergency button'
}
Config.CommandClear = {
command = 'cls',
description = 'Clear Alerts'
}
Config.Jobs = {
'police',
'ambulance'
}
Config.AllowedJobs = {
["police"] = {
name = 'police',
label = 'LSPD',
command = 'alert',
descriptcommand = 'Send an alert to LSPD',
panic = true,
},
["ambulance"] = {
name = 'ambulance',
label = 'EMS',
command = 'alertems',
descriptcommand = 'Send an alert to EMS',
panic = true,
},
}
- Download https://github.com/ErrorMauw/op-dispatch/archive/refs/heads/main.zip
- Put it in the
resources
directory
Using Git
cd resources git clone https://github.com/ErrorMauw/op-dispatch resources/op-dispatch