Returns the number of free slots in a container and the types of items it can hold

See also Container functions.


freeSlots, bagType = GetContainerNumFreeSlots(container)


  • container - Index of one of the player's bags or other containers (number, containerID)


  • freeSlots - Number of empty slots in the bag (number)
  • bagType - Bitwise OR of the item families that can be put into the container; see GetItemFamily for details (number, bitfield)