ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('cd_dispatch') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
Dispatch.SendAlert = function(data)
|
||||
local plyrData = exports['cd_dispatch']:GetPlayerInfo()
|
||||
TriggerServerEvent('cd_dispatch:AddNotification', {
|
||||
job_table = data.jobs,
|
||||
coords = data.coords,
|
||||
title = data.message,
|
||||
message = data.message,
|
||||
flash = 0,
|
||||
unique_id = plyrData.unique_id,
|
||||
sound = 1,
|
||||
blip = {
|
||||
sprite = data.blipData.sprite,
|
||||
scale = data.blipData.scale,
|
||||
colour = data.blipData.color,
|
||||
flashes = false,
|
||||
text = data.message,
|
||||
time = (data.time / 1000),
|
||||
radius = 0,
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
return Dispatch
|
Loading…
Add table
Add a link
Reference in a new issue