forked from Simnation/Main
ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('ps-dispatch') == 'missing' then return end
|
||||
if GetResourceState('lb-tablet') == 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
Dispatch.SendAlert = function(data)
|
||||
local alertData = {
|
||||
message = data.message,
|
||||
code = data.code or '10-80',
|
||||
icon = data.icon or 'fas fa-question',
|
||||
priority = 2,
|
||||
coords = data.coords,
|
||||
vehicle = data.vehicle,
|
||||
plate = data.plate,
|
||||
alertTime = (data.time or 10000) / 1000,
|
||||
alert = {
|
||||
radius = 0,
|
||||
recipientList = data.jobs,
|
||||
sprite = data.blipData.sprite,
|
||||
color = data.blipData.color,
|
||||
scale = data.blipData.scale,
|
||||
length = 2,
|
||||
sound = "Lose_1st",
|
||||
sound2 = "GTAO_FM_Events_Soundset",
|
||||
offset = false,
|
||||
flash = false
|
||||
},
|
||||
jobs = data.jobs
|
||||
}
|
||||
exports["ps-dispatch"]:CustomAlert(alertData)
|
||||
end
|
||||
|
||||
return Dispatch
|
Loading…
Add table
Add a link
Reference in a new issue