Files

24 lines
690 B
Lua
Raw Permalink Normal View History

---@diagnostic disable: duplicate-set-field
2025-05-18 23:45:37 -04:00
if GetResourceState('redutzu-mdt') == 'missing' then return end
2025-04-02 12:53:02 -04:00
Dispatch = Dispatch or {}
Dispatch.SendAlert = function(data)
local streetName, _ = Utility.GetStreetNameAtCoords(data.coords)
local alertData = {
code = data.code or '10-80',
message = data.message or "Dispatch Alert",
street = streetName,
time = data.time or 10000,
coords = data.coords,
}
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
end
2025-09-10 12:27:12 -04:00
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'redutzu-mdt'
end
return Dispatch