Dispatch System
Open Dispatch (Default keybind is DELETE, you can change in editable file)
This will only open if player has job from config and is on duty
exports['piotreq_lst']:OpenDispatch()Send Dispatch Alert
senderId
numberdata
tabletitle
stringcode
stringicon
string(fontawesome)info
tableisStreet?
booleancoords?
vector3 / vector4 / table(not required if you want source coords)jobs?
table(dont use if for everyone)blip?
tabletype?
"normal" / "risk"(default "risk")canAnswer?
boolean(default false)maxWorkers?
number(default 4)time?
number(default 5, in minutes, how long alert will be on dispatch)notifyTime?
number(default 7000)
exports['piotreq_lst']:SendAlert(senderId, {
title = 'Vehicle Crash',
code = '1-10',
icon = 'fa-solid fa-car',
info = {
{icon = 'fa-solid fa-road', isStreet = true},
{icon = 'fa-solid fa-triangle-exclamation', data = 'Very Danger'},
},
jobs = {['mechanic'] = true}, -- optional
blip = { -- optional
scale = 1.1,
sprite = 1,
category = 3, -- default 1
color = 1,
hidden = false, -- default false (hidden on legend)
priority = 5, -- default 5
short = true, -- as short range? default true
alpha = 200, -- default 255
name = "Vehicle Crash"
},
type = 'risk', -- default normal
canAnswer = true, -- default false
maxWorkers = 4, -- default 4
time = 10,-- 10 minutes, default 5
notifyTime = 8000, -- 8 seconds, default 7
})Last updated