ESODecoded

GetUnitGender

ESO Lua API function — used by 67 of the 3,030 addons we indexed (combined 11,599,557 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitGender(string unitTag)

Returns: gender

Real usage — from LibCombat

		charData.raceId = GetUnitRaceId("player")
		charData.gender = GetUnitGender("player")
		charData.classId = GetUnitClassId("player")

Short excerpt from the shipping addon LibCombatits 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
LibCombat5,017,654
RaidNotifier Updated2,789,746
Foundry Tactical Combat (FTC)1,097,601
Votan's Achievements Overview330,065
LibUnitTracker222,004
FCM Quest Tracker199,980