Files

19 lines
539 B
Lua
Raw Permalink Normal View History

2025-02-05 20:43:44 -05:00
Dispatch = Dispatch or {}
RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data)
local jobs = data.jobs
for _, name in pairs(jobs) do
local activeJobPlayers = Bridge.Framework.GetPlayersByJob(name)
2025-05-22 15:39:37 +03:00
for _, src in pairs(activeJobPlayers) do
2025-02-05 20:43:44 -05:00
TriggerClientEvent('community_bridge:Client:DispatchAlert', src, data)
end
end
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 'default'
end
2025-05-22 15:39:37 +03:00
return Dispatch