mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 05:02:15 +00:00
Fix unlimited adding stocks exploit
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user