ESODecoded

GetCurrentMapZoneIndex

ESO Lua API function — used by 96 of the 3,030 addons we indexed (combined 66,151,901 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetCurrentMapZoneIndex()

Returns: luaindex zoneIndex

Real usage — from HarvestMap

	local playerZoneIndex = GetUnitZoneIndex("player")
	local mapZoneIndex = GetCurrentMapZoneIndex()

Short excerpt from the shipping addon HarvestMapits 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
HarvestMap9,454,533
Destinations8,211,449
Map Pins8,061,548
LibMapPins5,838,255
AwesomeGuildStore4,722,462
Votan's Minimap4,211,718