Files
community_bridge/modules/dispatch/redutzu-mdt/server/server.lua
T

12 lines
383 B
Lua
Raw Normal View History

2025-04-02 12:53:02 -04:00
if GetResourceState('redutzu-mdt') ~= 'started' then return end
Dispatch = Dispatch or {}
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
TriggerEvent('redutzu-mdt:server:addDispatchToMDT', {
code = data.code,
title = data.message,
street = data.street,
duration = data.time,
coords = data.coords
})
end)