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, slotIndexShort excerpt from the shipping addon LibFilters-3.0 — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| LibFilters-3.0 | 2,063,617 |
| Research Assistant (Find your researchable items) | 1,749,216 |
| Loot Log | 1,608,502 |
| Dustman | 1,178,205 |
| Harven's Trait and Style | 311,759 |
| Set Collection Marker (Sticker Book) | 135,099 |