Files
community_bridge/modules/dispatch/cd_dispatch/client/client.lua
T
MrNewb c71a261115 chore(intellisense): improve parameter annotations and add missing comments
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
2025-06-07 22:50:13 -04:00

27 lines
793 B
Lua

---@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