ESODecoded

GetCurrentMapId

ESO Lua API function — used by 48 of the 3,030 addons we indexed (combined 58,492,045 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetCurrentMapId()

Returns: integer mapId

Real usage — from LoreBooks

local function GetCurrentMapIdentity()
  return GetCurrentMapId(), LMP:GetZoneAndSubzone(true, false, true)
end

Short excerpt from the shipping addon LoreBooksits 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
LoreBooks13,090,355
Destinations8,211,449
Lost Treasure6,404,899
LibQuestData4,916,044
AwesomeGuildStore4,722,462
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189