CanItemBePlayerLocked

From ESOUI Wiki

Jump to: navigation, search

This function returns true if the specified bag slot contains an item that the player is allowed to lock. Some items, such as stolen goods and ornate equipment, cannot be locked.

If the function is called on an empty or invalid bad slot, it returns false.

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 canBeLocked = GetItemQuality(bagIndex, slotIndex)

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox