WoW API < GetContainerNumFreeSlots

Returns the total number of free slots in the bag an the type of items that can go into it specified by the index.

numberOfFreeSlots, BagType = GetContainerNumFreeSlots(bagID);

Parameters[edit | edit source]

Arguments[edit | edit source]

Integer - the slot containing the bag, e.g. 0 for backpack, etc.

Returns[edit | edit source]

Integer - the number of slots in the specified bag, or 0 if there is no bag in the given slot.
Integer - The type of the container
Community content is available under CC-BY-SA unless otherwise noted.