Removed xPlayer.removeWeapon() second argument

This commit is contained in:
ElPumpo
2020-02-25 15:54:38 +01:00
parent 8927aebae1
commit 24a9defca4
3 changed files with 5 additions and 12 deletions
+2 -2
View File
@@ -403,7 +403,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
return 0
end
self.removeWeapon = function(weaponName, ammo)
self.removeWeapon = function(weaponName)
local weaponLabel
for k,v in ipairs(self.loadout) do
@@ -420,7 +420,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
end
if weaponLabel then
self.triggerEvent('esx:removeWeapon', weaponName, ammo)
self.triggerEvent('esx:removeWeapon', weaponName)
self.triggerEvent('esx:removeInventoryItem', weaponLabel, false, true)
end
end