More changes

This commit is contained in:
Kakarot
2022-03-30 01:20:11 -05:00
parent dd6c6c4a09
commit eb34e65204
+2 -1
View File
@@ -9,6 +9,7 @@ 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
ExecuteCommand('add_ace group.god command allow')
end)
-- Register & Refresh Commands
@@ -100,7 +101,7 @@ QBCore.Commands.Add('addpermission', 'Give Player Permissions (God Only)', { { n
end
end, 'god')
QBCore.Commands.Add('removepermission', 'Remove Players Permissions (God Only)', { { name = 'id', help = 'ID of player' } }, true, function(source, args)
QBCore.Commands.Add('removepermission', 'Remove Players Permissions (God Only)', { { name = 'id', help = 'ID of player' }, { name = 'permission', help = 'Permission level' } }, true, function(source, args)
local Player = QBCore.Functions.GetPlayer(tonumber(args[1]))
local permission = tostring(args[2]):lower()
if Player then