mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 22:06:02 +01:00
Updated 2.1.0
Updated everything to new format, N1K0 is about to work on some more stuff.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
||||
|
||||
NDCore = exports["ND_Core"]:GetCoreObject()
|
||||
local alreadyShot = false
|
||||
local setRoute = false
|
||||
local route = false
|
||||
@@ -25,9 +26,9 @@ end
|
||||
|
||||
-- check if the players department can receive shot spotter alerts.
|
||||
function isCop()
|
||||
local selectedDepartment = exports["ND_Core"]:getCharacterInfo().department
|
||||
local job = NDCore.functions:getSelectedCharacter().job
|
||||
for _, department in pairs(config.receiveAlerts) do
|
||||
if department == selectedDepartment then
|
||||
if department == job then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
||||
|
||||
NDCore = exports["ND_Core"]:GetCoreObject()
|
||||
NDCore.functions:versionChecker("ND_ShotSpotter", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_ShotSpotter/fxmanifest.lua")
|
||||
|
||||
RegisterNetEvent("ND_ShotSpotter:Trigger")
|
||||
AddEventHandler("ND_ShotSpotter:Trigger", function(street, pedCoords, postal, zoneName)
|
||||
if server_config.useDiscordLogging then
|
||||
|
||||
Reference in New Issue
Block a user