Merge pull request #1855 from seltonmt012/fix/setinventoryitem-noop

fix(es_extended/server/classes/player): stop setInventoryItem throwing when nothing changes
This commit is contained in:
_Not_
2026-08-07 21:54:30 -05:00
committed by GitHub
@@ -505,6 +505,10 @@ function CreateExtendedPlayer(playerId, identifier, ssn, group, accounts, invent
if item and count >= 0 then
count = ESX.Math.Round(count)
if count == item.count then
return
end
if count > item.count then
self.addInventoryItem(item.name, count - item.count)
else