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 LibCombat — 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 |
|---|---|
| LibCombat | 5,017,654 |
| Votan's Minimap | 4,211,718 |
| LibMapData | 2,291,531 |
| Wizard's Wardrobe | 481,038 |
| The Librarium | 128,992 |
| The Elder Bar Reloaded | 75,429 |