Fixed removing weapon

This commit is contained in:
ElPumpo
2019-01-03 13:32:29 +01:00
parent e0a00325a1
commit 79c626aa9a
-1
View File
@@ -418,7 +418,6 @@ function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, l
for j=1, #self.loadout[i].components, 1 do
TriggerClientEvent('esx:removeWeaponComponent', self.source, weaponName, self.loadout[i].components[j])
table.remove(self.loadout[i].components, j)
end
table.remove(self.loadout, i)