mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
fix(server/commands): Use the correct variable for clearloadout
This commit is contained in:
+1
-1
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user