dispatches updated
This commit is contained in:
1 parent
8900822234
commit
b829edb835
16 files changed
+170
-175
No files matched your search
@@ -0,0 +1,29 @@
|
||||
if GetResourceState('ps-dispatch') ~= '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
|
||||
Reference in new issue
Block a user