fix(server/commands): Use the correct variable for clearloadout

This commit is contained in:
Linden
2021-06-04 01:02:24 +10:00
committed by GitHub
parent 25970b55ba
commit 30de47e09d
+1 -1
View File
@@ -118,7 +118,7 @@ end, true, {help = _U('command_clearinventory'), validate = true, arguments = {
ESX.RegisterCommand('clearloadout', 'admin', function(xPlayer, args, showError)
for i=#args.playerId.loadout, 1, -1 do
xPlayer.removeWeapon(args.playerId.loadout[i].name)
args.playerId.removeWeapon(args.playerId.loadout[i].name)
end
end, true, {help = _U('command_clearloadout'), validate = true, arguments = {
{name = 'playerId', help = _U('commandgeneric_playerid'), type = 'player'}