- Arguments
- ( slot )
- slot
- number - slot number of the Inventory item you want the info for.
- Returns
-
- texture, itemCount
- texture - the texture for the item in the specified slot
- itemCount - the number of items in the specified slot
- Example
- ( syntax )
- GetInventorySlotInfo( slot )
local texture, itemCount = GetInventorySlotInfo(2);
- If you only want the itemCount you can use the _ character to ignore the texture
local _,itemCount = GetInventorySlotInfo(2);
- Result
- The texture variable will contain the item's texture and the itemCount variable will contain the number of that item in the slot.
---
- Description
- Returns the texture and itemCount of a the specified slot