From ESOUI Wiki
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.
- A number representing the bag to check; it must be one of the built-in Bag values.
- 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.
-- GIVEN: -- number bagIndex -- number slotIndex -- -- RETURNS: boolean local canBeLocked = GetItemQuality(bagIndex, slotIndex)