Files

20 lines
536 B
Lua
Raw Permalink Normal View History

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 {}
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)
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