dispatches updated
This commit is contained in:
1 parent
8900822234
commit
b829edb835
16 files changed
+170
-175
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
for src, _ in pairs(activeJobPlayers) do
|
||||
TriggerClientEvent('community_bridge:Client:DispatchAlert', src, data)
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user