Config
Config = {}
Config.LangUse = "en" -- Choose your language
Config.Framework = 1 -- 1 : QBCore | 2 : ESX
Config.ESX_extended = true -- Set True if you use ESX_extended, just for ESX Framework
Config.UseCommande = true -- if false, you can use TriggerEvent('le-dispatch:client:show') on client side to open dispatch.
Config.Commande = 'dp' -- Command name to use a key to open Dispatch if Config.UseCommande is True | Default: dp
Config.UseKeyMapping = true -- Set True to use a key to open Dispatch
Config.KeyMappingShow = 'f6' -- They key to use to open Dispatch if Config.UseKeyMapping is True | Default: f6
Config.KeyMappingOption = "f5" -- Open Dispatch Option
Config.KeyMappingRespond = "G" -- Respond to dispatch and hold to send message
Config.KeyMappingDelete = "J" -- Static: Delete current dispatch
Config.KeyMappingLock = "L" -- Static: Lock current dispatch
Config.KeyMappingFollow = "O" -- Static: Follow current dispatch
Config.KeyMappingRemoveWayPoint = "K" -- Static: Remove WayPoint on map
Config.CanSendMessage = true -- if player can send a message to other player if they use like /911
Config.TimeKeyHolding = 150 -- Change if holding a key don't work
-- Add White listed jobs
Config.WhitelistedJobs = {
["police"] = true,
["sheriff"] = true,
["ambulance"] = true,
}
-- Mutiple job for one type: exemple: Dispatch for police will go for police and sheriff
Config.JobDispatch = {
['police'] = {
police = true,
sheriff = true
},
['ambulance'] = {
ambulance = true
}
}
-- Color : RGBA to hex
-- Dynamic
Config.DispatchColorsDynamic = {
["police"] = {
[1] = {'#003464d1'}, -- Priority 1 Dispatch background color, don't flash
[2] = {'#841515c2'}, -- Priority 2 Dispatch background color, don't flash?
[3] = {'#841515c2', '#0000ffb3'}, -- Priority 3 Dispatch background color, flash with second color
},
["ambulance"] = {
[1] = {'#97BE5Ad1'}, -- Priority 1 Dispatch background color, don't flash
[2] = {'#028391c2'}, -- Priority 2 Dispatch background color, don't flash?
[3] = {'#FFFF80c2','#151515b3'}, -- Priority 3 Dispatch background color, flash with second color
},
}
-- Static
Config.DispatchColorsStatic = {
["police"] = {
[1] = {'#353535'}, -- Priority 1 Dispatch background color, don't flash
[2] = {'#fc0404c2'}, -- Priority 2 Dispatch background color, don't flash?
[3] = {'#fc0404c2', '#0000ffb3'}, -- Priority 3 Dispatch background color, flash with second color
},
["ambulance"] = {
[1] = {'#353535'}, -- Priority 1 Dispatch background color, don't flash
[2] = {'#08c2d6c2'}, -- Priority 2 Dispatch background color, don't flash?
[3] = {'#ffff00de','#151515b3'}, -- Priority 3 Dispatch background color, flash with second color
},
}
Config.DispatchSounds = {
["police"] = {
[1] = '10-1315', -- Priority 1 Dispatch Sound
[2] = '10-1316', -- Priority 2 Dispatch Sound
[3] = '10-1314', -- Priority 3 Dispatch Sound
},
["ambulance"] = {
[1] = '10-1315', -- Priority 1 Dispatch Sound
[2] = '10-1316', -- Priority 2 Dispatch Sound
[3] = '10-1314', -- Priority 3 Dispatch Sound
},
}
Config.UseCustomNotification = false -- true : add your notification system | false : use gta notification
-- Use if 'Config.UseCustomNotification' is set to true
function customNotification(message, type) -- Message : message to notify the player | type : error or success or info or warning
-- Enter you notification system here
end
Config.Language = { -- Copy/Paste to add more language
['en'] = {
['volume'] = 'Enter a number between 0 and 100',
['defaultVolume'] = "The volume must be between 0 and 100, by default the volume is 30",
['respondKey'] = 'Respond to dispatch',
['deleteKey'] = 'Delete current dispatch',
['lockKey'] = 'Lock dispatch',
['followKey'] = 'Follow dispatch',
['leftKey'] = 'Previous dispatch',
['rightKey'] = 'Next dispatch',
['showDispatchKey'] = 'Show dispatch',
['removeRoutKey'] = 'Remove route',
['showDispatchOptionKey'] = 'Show dispatch option',
['cleardp'] = 'Dispatch empty',
['disableNotifications'] = 'You will no longer receive dispatch',
['enableNotifications'] = 'You start receiving dispatches again',
['lock'] = 'Lock',
['unlock'] = 'Unlock',
['street'] = 'Street:',
['disableGPSFollow'] = 'Automatic GPS disabled.',
['noGPSFollow'] = 'No automatic GPS enabled.',
['enableGPSFollow'] = 'Automatic GPS on agent %s during dispatch %s activated.',
['GPS'] = 'The GPS has been set',
['noGPS'] = 'No Position for this alert!',
['noInfo'] = 'No more info.',
['noRoute'] = 'No GPS set!',
['priority'] = 'Priority: ',
['noDelete'] = 'Nothing to delete.',
['noLock'] = 'Nothing to lock.',
['noFollow'] = 'Nothing to follow.',
['newPos'] = 'New Position!',
['cantRespond'] = 'You cannot send a message for this dispatch.',
['respondto'] = 'Respond to your %s call: %s',
},
}
Last updated