GetCurrentCharacterId
ESO Lua API function — used by 161 of the 3,030 addons we indexed (combined 46,250,909 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCurrentCharacterId()Returns: string id
Real usage — from Srendarr - Aura, Buff & Debuff Tracker
local usingGlobal = SrendarrDB.Default[GetDisplayName()]['$AccountWide'].useAccountWide
local currentPlayer = tostring(GetCurrentCharacterId())
local versionDB = Srendarr.versionDBShort excerpt from the shipping addon Srendarr - Aura, Buff & Debuff Tracker — 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 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| Inventory Insight | 2,763,446 |
| ESO Master Recipe List | 2,130,985 |
| LibSavedVars | 1,958,318 |
| Urich's Skill Point Finder | 1,834,266 |