update: compat for get admin and update ace on group

This commit is contained in:
Andyyy7666
2023-08-24 01:00:54 +02:00
parent 9738fc236b
commit 46fc396924
2 changed files with 13 additions and 0 deletions

View File

@@ -196,6 +196,13 @@ function NDCore.Functions.UpdateLastLocation(characterId, location)
})
end
function NDCore.Functions.IsPlayerAdmin(src)
local player = NDCore.getPlayer(src)
if player.groups["admin"] then
return true
end
end
-- Getting all the characters the player has and returning them to the client.
RegisterNetEvent("ND:GetCharacters", function()
local src = source