Fixed counting error

This commit is contained in:
ElPumpo
2018-03-11 19:06:55 +01:00
parent 654b3b7665
commit b8f06df976
+1 -1
View File
@@ -269,7 +269,7 @@ AddEventHandler('esx_property:getItem', function(owner, type, item, count)
if count > 0 and inventory.getItem(item).count >= count then
-- can the player carry the said amount of x item?
if sourceItem.limit ~= -1 and (sourceItem.count + item) > sourceItem.limit then
if sourceItem.limit ~= -1 and (sourceItem.count + count) > sourceItem.limit then
TriggerClientEvent('esx:showNotification', _source, _U('player_cannot_hold'))
else
inventory.removeItem(item, count)