GetItemName
ESO Lua API function — used by 145 of the 3,030 addons we indexed (combined 42,616,552 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetItemName([Bag|#Bag] bagId, integer slotIndex)Returns: string name
Real usage — from Dolgubon's Lazy Writ Crafter
for i = FindFirstEmptySlotInBag(location) or 250, GetBagSize(location) - 1 do
if GetItemName(location, i) == "" then
emptySlots[#emptySlots + 1] = iShort excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — 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 |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| Map Pins | 8,061,548 |
| LibLazyCrafting | 6,538,592 |
| Inventory Insight | 2,763,446 |
| LibFilters-3.0 | 2,063,617 |
| Research Assistant (Find your researchable items) | 1,749,216 |