mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
21 lines
563 B
Lua
21 lines
563 B
Lua
|
|
local function allowAce(allow)
|
||
|
|
return allow == false and 'deny' or 'allow'
|
||
|
|
end
|
||
|
|
|
||
|
|
function lib.addAce(principal, ace, allow)
|
||
|
|
ExecuteCommand(('add_ace %s %s %s'):format(principal, ace, allowAce(allow)))
|
||
|
|
end
|
||
|
|
|
||
|
|
function lib.removeAce(principal, ace, allow)
|
||
|
|
ExecuteCommand(('remove_ace %s %s %s'):format(principal, ace, allowAce(allow)))
|
||
|
|
end
|
||
|
|
|
||
|
|
function lib.addPrincipal(child, parent)
|
||
|
|
ExecuteCommand(('add_principal %s %s'):format(child, parent))
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
function lib.removePrincipal(child, parent)
|
||
|
|
ExecuteCommand(('remove_principal %s %s'):format(child, parent))
|
||
|
|
end
|