Fixed /setgroup command

This commit is contained in:
ElPumpo
2020-03-06 20:46:28 +01:00
parent 3ba2ed150f
commit 1d60857a7e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -73,6 +73,7 @@ git clone https://github.com/ESX-Org/esx_menu_list [esx]/[ui]/esx_menu_list
add_principal group.admin group.user
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
start mysql-async
start es_extended
+1 -1
View File
@@ -111,7 +111,7 @@ end, true, {help = _U('command_clearloadout'), validate = true, arguments = {
}})
ESX.RegisterCommand('setgroup', 'admin', function(xPlayer, args, showError)
args.playerId.setGorup(args.group)
args.playerId.setGroup(args.group)
end, true, {help = _U('command_setgroup'), validate = true, arguments = {
{name = 'playerId', help = _U('commandgeneric_playerid'), type = 'player'},
{name = 'group', help = _U('command_setgroup_group'), type = 'string'},