mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 03:08:52 +00:00
Merge pull request #637 from Profex1999/patch-1
Fix removeWeaponComponent not working correctly
This commit is contained in:
@@ -432,7 +432,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
if component then
|
||||
if self.hasWeaponComponent(weaponName, weaponComponent) then
|
||||
for k,v in ipairs(self.loadout[loadoutNum].components) do
|
||||
if v.name == weaponComponent then
|
||||
if v == weaponComponent then
|
||||
table.remove(self.loadout[loadoutNum].components, k)
|
||||
break
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user