More changes

This commit is contained in:
Kakarot
2022-03-30 00:45:31 -05:00
parent f5e22066fb
commit 46a2aae5ce
3 changed files with 12 additions and 12 deletions
+7 -1
View File
@@ -3,9 +3,15 @@ QBCore.Commands.List = {}
QBCore.Commands.IgnoreList = { -- Ignore old perm levels while keeping backwards compatibility
['god'] = true, -- We don't need to create an ace because group.admin allows all commands
['admin'] = true, -- We don't need to create an ace because group.admin allows all commands
['user'] = true, -- We don't need to create an ace because builtin.everyone
['user'] = true -- We don't need to create an ace because builtin.everyone
}
CreateThread(function() -- Add rank name to ace
for k,v in pairs(QBConfig.Server.Permissions) do
ExecuteCommand(('add_ace group.%s %s allow'):format(v, v))
end
end)
-- Register & Refresh Commands
function QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission)