update: compat for get admin and update ace on group

This commit is contained in:
Andyyy7666 committed 2023-08-24 01:00:54 +02:00
1 parent 9738fc236b
commit 46fc396924
2 files changed
+13

No files matched your search

+7
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