From b8f06df97606c05e6d8cc6a6ee938f5a00403b54 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 11 Mar 2018 19:06:55 +0100 Subject: [PATCH] Fixed counting error --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 558ef84b..889e72d8 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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)