FANDOM


Gets information about a bag item in BagFrameTab1-6 (Backpack I-VI).

local inventoryIndex, icon, name, itemCount, locked, invalid = GetBagItemInfo ( bagIndex )

Parameters Edit

Arguments Edit

bagIndex
number - The bag slot of the item to be used.

Returns Edit

inventoryIndex
number - The Inventory index of the item (used in UseBagItem for instance).
icon
string - The path to the item's icon.
name
string - The name of the item.
itemCount
number - The number of the item
locked
boolean - Can the item be Dismantled? (unconfirmed)
quality
 ???

Notes Edit

  • Bag indexes used for GetBagItemInfo are not the same as the Inventory Indexes used by UseBagItem, GetBagItemLink, and PickupBagItem
  • Bag indexes 1-30 are in Backpack I and run sequentially from left to right, top to bottom.
  • Bag indexes 31-60 are in Backpack II and run sequentially from left to right, top to bottom.
  • Bag indexes 61-90 are in Backpack III and run sequentially from left to right, top to bottom. (unconfirmed)
  • Bag indexes 91-120 are in Backpack IV and run sequentially from left to right, top to bottom. (unconfirmed)
  • Bag indexes 121-150 are in Backpack V and run sequentially from left to right, top to bottom. (unconfirmed)
  • Bag indexes 151-180 are in Backpack VI and run sequentially from left to right, top to bottom. (unconfirmed)
  • Bag indexes 181-257 all seem to point to the first slot in the Item Shop Backpack. (Bug?)

Example Edit

Returns information about the first bag item slot in Backpack I:

local inventoryIndex, icon, name, itemCount, locked, invalid = GetBagItemInfo(1)

Pictures Edit

Backpack I Bag Indexes Backpack II Bag Indexes Backpack III Bag Indexes Backpack IV Bag Indexes Backpack V Bag Indexes Backpack VI Bag Indexes

Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.