API GetContainerFreeSlots

Populates a table with references to unused slots inside a container.

returnTable = GetContainerFreeSlots(index); GetContainerFreeSlots(index, returnTable);

Arguments

 * index : Integer - the slot containing the bag, e.g. 0 for backpack, etc.
 * returnTable : Table - (optional) Provide an empty table and the function will populate it with the free slots

Returns

 * returnTable : Table - If you do not specify returnTable as an argument, the function constructs and returns a new table instead