ESODecoded

GetZoneNameByIndex

ESO Lua API function — used by 48 of the 3,030 addons we indexed (combined 32,247,617 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetZoneNameByIndex(luaindex zoneIndex)

Returns: string zoneName

Real usage — from LoreBooks


            local zoneName = zo_strformat(SI_WINDOW_TITLE_WORLD_MAP, GetZoneNameByIndex(zoneIndex))
            local mapName = zo_strformat(SI_WINDOW_TITLE_WORLD_MAP, GetMapNameById(mapId))

Short excerpt from the shipping addon LoreBooksits 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
LoreBooks13,090,355
Code's Combat Alerts4,445,158
Votan's Minimap4,211,718
LibMapData2,291,531
Votan's Fisherman1,662,523
Auto Category - Revised1,180,586