Fix unlimited adding stocks exploit

This commit is contained in:
Luke
2022-01-20 17:26:57 +00:00
committed by GitHub
parent 548a684dd1
commit 91dec5c331
+1 -1
View File
@@ -84,7 +84,7 @@ AddEventHandler('esx_taxijob:putStockItems', function(itemName, count)
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_taxi', function(inventory)
local item = inventory.getItem(itemName)
if item.count >= 0 then
if item.count > 0 then
xPlayer.removeInventoryItem(itemName, count)
inventory.addItem(itemName, count)
xPlayer.showNotification(_U('have_deposited', count, item.label))