GetPlayerActiveZoneName
ESO Lua API function — used by 34 of the 3,030 addons we indexed (combined 6,449,426 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetPlayerActiveZoneName()Returns: string zoneName
Real usage — from LibCombat
self.time = GetTimeString()
self.zone = GetPlayerActiveZoneName()
self.subzone = GetPlayerActiveSubzoneName()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 |
| Wizard's Wardrobe | 481,038 |
| Dynamic CP (Champion Points 2.0) | 319,248 |
| The Librarium | 128,992 |
| QuickMapNav | 103,139 |
| LorePlay - Emotes, Outfits, and more! | 60,674 |