mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Fix(es_extended): ammo saves when its more than previous
This commit is contained in:
@@ -445,9 +445,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
local loadoutNum, weapon = self.getWeapon(weaponName)
|
||||
|
||||
if weapon then
|
||||
if ammoCount < weapon.ammo then
|
||||
weapon.ammo = ammoCount
|
||||
end
|
||||
weapon.ammo = ammoCount
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user