Files
community_bridge/modules/dispatch/linden_outlawalert/client/client.lua
T

22 lines
718 B
Lua
Raw Normal View History

---@diagnostic disable: duplicate-set-field
2025-05-18 23:45:37 -04:00
if GetResourceState('linden_outlawalert') == 'missing' then return end
2025-02-05 20:43:44 -05:00
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
2025-07-28 01:37:52 -04:00
local ped = PlayerPedId()
2025-02-05 20:43:44 -05:00
TriggerServerEvent('wf-alerts:svNotify', {
dispatchData = {
displayCode = data.code or '211',
description = data.message or "Alert",
isImportant = 0,
recipientList = data.jobs or {'police'},
2025-02-10 17:51:37 -05:00
length = data.time or '10000',
2025-02-05 20:43:44 -05:00
infoM = data.icon or 'fas fa-question',
info = data.message or "Alert"
},
caller = 'Anonymous',
2025-07-28 01:37:52 -04:00
coords = data.coords or GetEntityCoords(ped)
2025-02-05 20:43:44 -05:00
})
end
return Dispatch