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);

Arguments

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

Returns

 * numberOfFreeSlots
 * Integer - the number of free slots in the specified bag.


 * BagType
 * Integer - The type of the container