ESODecoded

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.versionDB

Short excerpt from the shipping addon Srendarr - Aura, Buff & Debuff Trackerits 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
HarvestMap9,454,533
Srendarr - Aura, Buff & Debuff Tracker5,058,870
Inventory Insight2,763,446
ESO Master Recipe List2,130,985
LibSavedVars1,958,318
Urich's Skill Point Finder1,834,266