onItemAdded
Triggered when a inventory receives a new item. (with addItem or any other function)
- inventoryUniqueID:
string
- item:
InventoryItem
- addedItemName:
string
- addedQuantity:
number
addEventHandler("avp_grid_inventory:onItemAdded", function(inventoryUniqueID, item, addedItemName, addedQuantity)
-- Do something with it.
print(item.itemHash)
end)