mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
Update server.lua
This commit is contained in:
@@ -35,6 +35,14 @@ PerformHttpRequest("https://raw.githubusercontent.com/Andyyy7666/ND_Framework/ma
|
||||
end)
|
||||
|
||||
RegisterNetEvent("ND:shotSpotterActive")
|
||||
AddEventHandler("ND:shotSpotterActive", function(x, y, z, postal)
|
||||
TriggerClientEvent("ND:shotSpotterReport", -1, x, y, z, postal)
|
||||
end)
|
||||
AddEventHandler("ND:shotSpotterActive", function(pedCoords, postal)
|
||||
TriggerClientEvent("ND:shotSpotterReport", -1, pedCoords, postal)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("ND:getDept")
|
||||
AddEventHandler("ND:getDept", function()
|
||||
local players = exports["ND_Core"]:getCharacterTable()
|
||||
for k, v in pairs(players) do
|
||||
TriggerClientEvent("ND:returnDept", k, players[k].dept)
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user