Wowpedia
Advertisement
Wowpedia
240,504
pages
Game Flavors
Links
Patch
Added in 3.1.0 / 1.13.2

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

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

Arguments

index 
number - 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

See also

Advertisement