Skip to content

Retro Dispatch

shared/cfg.lua
cfg = {
debug = false,
useAutoDuty = true, -- this feature, do your duty on/off automatically when you enter/left to/from your character
openDispatchCommand = {
command = 'dispatch',
key = 'F10',
description = 'Open dispatch'
},
openDispatchCursorCommand = {
command = 'open_cursor',
key = 'F11',
description = 'Open/close dispatch cursor'
},
attendToLastAlert = {
command = 'attend_last_dispatch',
key = 'PAGEUP',
description = 'Attend to last dispatch alert'
},
setDutyCommand = 'setDispatchDuty', -- this code is used to turn your duty status on and off
setCodeCommand = 'setCode',
jobs = {
['police'] = true,
['sheriff'] = true,
['ambulance'] = true,
},
statusTypes = {
['code-4'] = { label = 'CODE 4', color = '#F7FF01' },
['code-6'] = { label = 'CODE 6', color = '#386BEA' },
['unresolved'] = { label = 'UNRESOLVED', color = '#FFA600' },
['resolved'] = { label = 'RESOLVED', color = '#F7FF01' },
['utl'] = { label = 'UTL', color = '#83837C' },
['10-77'] = { label = '10-77', color = '#B9B991' },
['10-78'] = { label = '10-78', color = '#F00' }
},
unitTypes = { -- ['JOB_NAME'] = 'JOB_LABEL'
['police'] = 'Police',
['sheriff'] = 'Sheriff'
},
codes = { -- 10 codes
{ code = '10-90', label = 'Robbery In Progress' },
{ code = '10-99C', label = 'Officer Needs Help' },
{ code = '911', label = 'Emergency Call' },
{ code = '10-94', label = 'Street Racing' },
{ code = '10-13A', label = 'Officer Down' },
{ code = '10-87', label = 'Animal Assistance' },
{ code = '10-10', label = 'Fight In Progress' },
{ code = '10-15', label = 'Suspect In Custody' },
{ code = '10-38', label = 'Traffic Stop' },
{ code = '10-50', label = 'Vehicle Accident' },
{ code = '10-99', label = 'Officer In Danger' },
},
importVehicles = { -- you have to write down your import vehicles. ['MODEL'] = 'LABEL'
['r820'] = 'R8'
},
statusCodes = { 'None', '10-6', '10-7', '10-8' }, -- You can only translate the code in the first row into your own language, please do not change its position, it must always remain at the start!
soundVolumes = { default = 0.5, emergency = 0.5 }, -- If you dont want to use a sound, you can make it 0.0
readyAlerts = { -- Types of alerts and sounds; default, emergency. (you can add it more sound or change if you wish)
trafficStop = {
type = 'default',
code = '10-38',
icon = 'FaTrafficLight',
title = 'Traffic Stop',
blip = {
sprite = 164,
colour = 1,
scale = 1.5,
length = 2,
},
autoAttachUnits = true,
autoAttachClosestVehicle = true,
jobs = { ['police'] = true, ['sheriff'] = true }
},
pursuitProgress = {
type = 'default',
code = '10-38',
icon = 'FaCarOn',
title = 'Pursuit in Progress',
blip = {
sprite = 56,
colour = 1,
scale = 1.5,
length = 2,
},
autoAttachUnits = true,
autoAttachClosestVehicle = true,
jobs = { ['police'] = true, ['sheriff'] = true }
},
createCall = {
type = 'default',
icon = 'FaCarOn',
blip = {
sprite = 164,
colour = 1,
scale = 1.5,
length = 2,
},
autoAttachUnits = false,
jobs = { ['police'] = true, ['sheriff'] = true }
},
shotFire = {
type = 'default',
code = '10-18',
icon = 'FaGun',
title = 'Shot Fire',
blip = {
sprite = 110,
colour = 1,
scale = 1.5,
length = 2,
},
jobs = { ['police'] = true, ['sheriff'] = true }
},
officerDeath = {
type = 'emergency',
code = '10-10',
icon = 'FaCarOn',
title = 'Officer Death',
blip = {
sprite = 110,
colour = 1,
scale = 1.5,
length = 2,
},
jobs = { ['police'] = true, ['sheriff'] = true, ['ambulance'] = true }
},
['911'] = {
type = 'default',
code = '911',
icon = 'FaPhone',
title = 'Incoming 911 Call',
blip = {
sprite = 817,
colour = 1,
scale = 1.5,
length = 2,
},
jobs = { ['police'] = true, ['sheriff'] = true, ['ambulance'] = true }
}
},
vehicleScanDetails = { -- you can add or delete detail
'owner',
'model',
'color'
},
fakeNames = { -- these names will be given randomly when plate scanner couldn't find the car (it's for better roleplaying)
'Anthony Joshua',
'Cristiano Ronaldo',
'Lionel Messi'
},
}