forked from Simnation/Main
ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('bub-mdt') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
Dispatch.SendAlert = function(data)
|
||||
local alertData = {
|
||||
code = data.code or '10-80',
|
||||
offense = data.message,
|
||||
coords = data.coords or GetEntityCoords(cache.ped),
|
||||
info = { label = data.code or '10-80', icon = data.icon or 'fas fa-question' },
|
||||
blip = data.blipData.sprite or 1,
|
||||
isEmergency = data.priority == 1 and true or false,
|
||||
blipCoords = data.coords or cache.ped and GetEntityCoords(cache.ped) or { x = 0, y = 0},
|
||||
}
|
||||
exports["bub-mdt"]:CustomAlert(alertData)
|
||||
end
|
||||
|
||||
return Dispatch
|
Loading…
Add table
Add a link
Reference in a new issue