ESODecoded

IsItemPlayerLocked

ESO Lua API function — used by 52 of the 3,030 addons we indexed (combined 8,304,225 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsItemPlayerLocked([Bag|#Bag] bagId, integer slotIndex)

Returns: bool playerLocked

Real usage — from LibFilters-3.0

    local function DoesNotBlockResearch(bagId, slotIndex)
        return not IsItemPlayerLocked(bagId, slotIndex) and GetItemTraitInformation(bagId, slotIndex) ~= ITEM_TRAIT_INFORMATION_RETRAITED and GetItemTraitInformation(bagId, slotIndex

Short excerpt from the shipping addon LibFilters-3.0its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LibFilters-3.02,063,617
Research Assistant (Find your researchable items)1,749,216
Loot Log1,608,502
Dustman1,178,205
Harven's Trait and Style311,759
Set Collection Marker (Sticker Book)135,099