From 30de47e09ddf22d484ebc919ed7b4ecbff792c1b Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 4 Jun 2021 01:02:24 +1000 Subject: [PATCH] fix(server/commands): Use the correct variable for clearloadout --- server/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commands.lua b/server/commands.lua index 5b6491b0..cdc668aa 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -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'}