ESODecoded

GetPlayerActiveSubzoneName

ESO Lua API function — used by 28 of the 3,030 addons we indexed (combined 12,474,642 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetPlayerActiveSubzoneName()

Returns: string subzoneName

Real usage — from LibCombat

		self.zone = GetPlayerActiveZoneName()
		self.subzone = GetPlayerActiveSubzoneName()
		self.zoneId = GetUnitWorldPosition("player")

Short excerpt from the shipping addon LibCombatits 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
LibCombat5,017,654
Votan's Minimap4,211,718
LibMapData2,291,531
Wizard's Wardrobe481,038
The Librarium128,992
The Elder Bar Reloaded75,429