tweak dispatch for ps

This commit is contained in:
MrNewb committed 2025-08-12 18:10:13 -04:00
1 parent e30dceb540
commit de5353b329
1 file changed
+14 -17
+14 -17
View File
@@ -5,27 +5,24 @@ Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data) Dispatch.SendAlert = function(data)
local alertData = { local alertData = {
message = data.message, message = data.message or "No message provided",
code = data.code or '10-80', code = data.code or '10-80',
icon = data.icon or 'fas fa-question', icon = data.icon or 'fas fa-question',
priority = 2, priority = data.priority or 2,
coords = data.coords, coords = data.coords or GetEntityCoords(PlayerPedId()),
vehicle = data.vehicle, vehicle = data.vehicle,
plate = data.plate, plate = data.plate,
alertTime = (data.time or 10000) / 1000, alertTime = data.time and (data.time / 1000) or nil,
alert = { radius = data.blipData and data.blipData.radius or 0,
radius = 0, sprite = data.blipData and data.blipData.sprite or 161,
recipientList = data.jobs, color = data.blipData and data.blipData.color or 84,
sprite = data.blipData.sprite, scale = data.blipData and data.blipData.scale or 1.0,
color = data.blipData.color, length = 2,
scale = data.blipData.scale, sound = "Lose_1st",
length = 2, sound2 = "GTAO_FM_Events_Soundset",
sound = "Lose_1st", offset = false,
sound2 = "GTAO_FM_Events_Soundset", flash = data.blipData and data.blipData.flash or false,
offset = false, jobs = data.jobs or data.job or "police"
flash = false
},
jobs = data.jobs
} }
exports["ps-dispatch"]:CustomAlert(alertData) exports["ps-dispatch"]:CustomAlert(alertData)
end end