tweak dispatch for ps
This commit is contained in:
1 parent
e30dceb540
commit
de5353b329
1 file changed
+14
-17
@@ -5,27 +5,24 @@ Dispatch = Dispatch or {}
|
||||
|
||||
Dispatch.SendAlert = function(data)
|
||||
local alertData = {
|
||||
message = data.message,
|
||||
message = data.message or "No message provided",
|
||||
code = data.code or '10-80',
|
||||
icon = data.icon or 'fas fa-question',
|
||||
priority = 2,
|
||||
coords = data.coords,
|
||||
priority = data.priority or 2,
|
||||
coords = data.coords or GetEntityCoords(PlayerPedId()),
|
||||
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
|
||||
alertTime = data.time and (data.time / 1000) or nil,
|
||||
radius = data.blipData and data.blipData.radius or 0,
|
||||
sprite = data.blipData and data.blipData.sprite or 161,
|
||||
color = data.blipData and data.blipData.color or 84,
|
||||
scale = data.blipData and data.blipData.scale or 1.0,
|
||||
length = 2,
|
||||
sound = "Lose_1st",
|
||||
sound2 = "GTAO_FM_Events_Soundset",
|
||||
offset = false,
|
||||
flash = data.blipData and data.blipData.flash or false,
|
||||
jobs = data.jobs or data.job or "police"
|
||||
}
|
||||
exports["ps-dispatch"]:CustomAlert(alertData)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user