mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-17 02:58:33 +00:00
update: compat for get admin and update ace on group
This commit is contained in:
1 parent
9738fc236b
commit
46fc396924
2 files changed
+13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user