HasItemInSlot

From ESOUI Wiki

Jump to: navigation, search

Checks if a particular bag slot contains an item. This function returns true if the specified slot has an item. It returns false if the item slot is empty, if the item slot doesn't exist (e.g. the 9999th slot of the player's backpack), or if an invalid bag number is specified.

Arguments

bagId
A number representing the bag to check; it must be one of the built-in Bag values.
slotIndex
The numeric index of the slot in that bag which should be checked. For most bags, this is a number ranging from 1 to the size of the bag.

Syntax

-- GIVEN:
-- number bagIndex
-- number slotIndex
--
-- RETURNS: boolean
local slotHasItem = HasItemInSlot(bagIndex, slotIndex)

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox