GetString
ESO Lua API function — used by 1,111 of the 3,030 addons we indexed (combined 230,547,018 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetString(string stringVariablePrefix, integer contextId)Returns: string stringValue
Real usage — from LoreBooks
local pinTag = mapPinObject.m_PinTag
local title = pinTag.pinName or GetString(LBOOKS_BOOKSHELF)
local icon = GetPinTextureBookshelf(mapPinObject)Short excerpt from the shipping addon LoreBooks — 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 |
|---|---|
| LoreBooks | 13,090,355 |
| SkyShards | 12,943,031 |
| HarvestMap | 9,454,533 |
| Destinations | 8,211,449 |
| Map Pins | 8,061,548 |
| Action Duration Reminder | 6,522,011 |