ESODecoded

EVENT_ZONE_CHANGED

ESO Lua API function — used by 90 of the 3,030 addons we indexed (combined 21,541,809 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_ZONE_CHANGED(string zoneName, string subZoneName, bool newSubzone, integer zoneId, integer subZoneId)

Real usage — from Combat Metrics


	em:RegisterForEvent(CMX.name .. "zone", EVENT_ZONE_CHANGED, UpdateEvents)
	em:RegisterForEvent(CMX.name .. "group1", EVENT_GROUP_UPDATE, UpdateEvents)

Short excerpt from the shipping addon Combat Metricsits 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
Combat Metrics7,085,289
Votan's Minimap4,211,718
RaidNotifier Updated2,789,746
LibMapData2,291,531
Azurah - Interface Enhanced1,462,318
RuESO870,904