mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
feat(server/acl): add ox_lib:checkPlayerAce as callback
This commit is contained in:
@@ -37,3 +37,7 @@ function lib.removePrincipal(child, parent)
|
|||||||
|
|
||||||
ExecuteCommand(('remove_principal %s %s'):format(child, parent))
|
ExecuteCommand(('remove_principal %s %s'):format(child, parent))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
lib.callback.register('ox_lib:checkPlayerAce', function(source, command)
|
||||||
|
return IsPlayerAceAllowed(source, command)
|
||||||
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user