GetCurrentZoneHouseId
ESO Lua API function — used by 69 of the 3,030 addons we indexed (combined 24,758,689 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCurrentZoneHouseId()Returns: integer houseId
Real usage — from Dolgubon's Lazy Writ Crafter
local bags = bagList
if (GetInteractionType() ~= INTERACTION_CONVERSATION ) and GetCurrentZoneHouseId() >0 then
bags = houseBagListShort excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — 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 |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| Votan's Minimap | 4,211,718 |
| Inventory Insight | 2,763,446 |
| LibZone | 1,937,031 |
| Provision's TeamFormation : Teammate Radar | 1,506,270 |
| MiniMap by Fyrakin [Masteroshi430's branch] | 1,392,567 |