Touched up incorrect or missing Intellisense parameter annotations across several functions. Added some missing descriptions to improve editor support. Still more to do, but this is a small step forward for overall developer workflow. Also small fix in picklexp
21 lines
694 B
Lua
21 lines
694 B
Lua
---@diagnostic disable: duplicate-set-field
|
|
if GetResourceState('linden_outlawalert') == 'missing' then return end
|
|
Dispatch = Dispatch or {}
|
|
|
|
Dispatch.SendAlert = function(data)
|
|
TriggerServerEvent('wf-alerts:svNotify', {
|
|
dispatchData = {
|
|
displayCode = data.code or '211',
|
|
description = data.message or "Alert",
|
|
isImportant = 0,
|
|
recipientList = data.jobs or {'police'},
|
|
length = data.time or '10000',
|
|
infoM = data.icon or 'fas fa-question',
|
|
info = data.message or "Alert"
|
|
},
|
|
caller = 'Anonymous',
|
|
coords = data.coords or GetEntityCoords(cache.ped)
|
|
})
|
|
end
|
|
|
|
return Dispatch |