GetZoneId
ESO Lua API function — used by 215 of the 3,030 addons we indexed (combined 66,151,282 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetZoneId(luaindex zoneIndex)Returns: integer zoneId
Real usage — from HarvestMap
self:Warn("tried to save node in wrong zone: %d, %d, %s",
GetZoneId(GetUnitZoneIndex("player")), mapMetaData.zoneId, mapMetaData.map)
returnShort excerpt from the shipping addon HarvestMap — 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 |
|---|---|
| HarvestMap | 9,454,533 |
| Destinations | 8,211,449 |
| Map Pins | 8,061,548 |
| LibMapPins | 5,838,255 |
| Code's Combat Alerts | 4,445,158 |
| LibGPS | 4,027,526 |