Returns the number of items stacked in an inventory slot.

Currently only returns meaningful information for the ammo slot.

See also Inventory functions.


count = GetInventoryItemCount("unit", slot)


  • unit - A unit to query; only valid for 'player' or the unit currently being inspected (string, unitID)
  • slot - An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)


  • count - The amount of items stacked in the inventory slot (number)