ESODecoded

GetClassName

ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 14,475,987 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetClassName([Gender|#Gender] gender, integer classId)

Returns: string className

Real usage — from Combat Metrics

		if id == classId then
			local class = GetClassName(gender, id)

Short excerpt from the shipping addon Combat Metricsits 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
Combat Metrics7,085,289
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
TraitBuddy1,101,730
Kill Counter577,202
Caro's Skill Point Saver (Respec Skill Lines, Champion Points, Gear, Quickslots, Appearances)364,055
Miat's PVP Alerts326,979