mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Fixed problems with /clearloadout
This commit is contained in:
+1
-1
@@ -239,7 +239,7 @@ TriggerEvent('es:addGroupCommand', 'clearloadout', 'admin', function(source, arg
|
||||
return
|
||||
end
|
||||
|
||||
for i=1, #xPlayer.loadout, 1 do
|
||||
for i=#xPlayer.loadout, 1, -1 do
|
||||
xPlayer.removeWeapon(xPlayer.loadout[i].name)
|
||||
end
|
||||
end, function(source, args, user)
|
||||
|
||||
Reference in New Issue
Block a user