ESODecoded

GetZoneNameById

ESO Lua API function — used by 117 of the 3,030 addons we indexed (combined 43,262,113 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetZoneNameById(integer zoneId)

Returns: string name

Real usage — from LoreBooks

  if zoneId == 0 then return "" end
  return zo_strformat(SI_WINDOW_TITLE_WORLD_MAP, GetZoneNameById(zoneId))
end

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
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
RaidNotifier Updated2,789,746
LibMapData2,291,531
LibZone1,937,031