Files
community_bridge/modules/dispatch/redutzu-mdt/client/client.lua
T
MrNewb 6ed438a609 possible redutzu-mdt support.
I looked at the docs, I dont have this to test though
2025-04-02 12:53:02 -04:00

14 lines
492 B
Lua

if GetResourceState('redutzu-mdt') ~= 'started' then return end
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