GetCurrentCampaignId
ESO Lua API function — used by 36 of the 3,030 addons we indexed (combined 6,819,070 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCurrentCampaignId()Returns: integer currentCampaignId
Real usage — from Votan's Minimap
if isInAvAMap then
local campaignId = GetCurrentCampaignId()
if campaignId ~= 0 thenShort excerpt from the shipping addon Votan's Minimap — 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 |
|---|---|
| Votan's Minimap | 4,211,718 |
| PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch] | 487,232 |
| Faster Travel (Wayshrines menu & Teleporter) | 369,697 |
| CyrHUD | 325,521 |
| AutoInvite - Updated | 229,026 |
| Bar Steward - Multi Toolbar | 204,140 |