mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
update: compat for get admin and update ace on group
This commit is contained in:
@@ -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