ESODecoded

GetGroupMemberSelectedRole

ESO Lua API function — used by 84 of the 3,030 addons we indexed (combined 23,939,721 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetGroupMemberSelectedRole(string unitTag)

Returns: role

Real usage — from Code's Combat Alerts


				if (abilityId ~= CombatAlertsData.cloudrest.flare.execute or GetGroupMemberSelectedRole(CombatAlerts.units[targetUnitId].tag) == LFG_ROLE_HEAL) then
					switcherUnitId = CombatAlerts.cloudrest.flare.units[1]

Short excerpt from the shipping addon Code's Combat Alertsits 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
Code's Combat Alerts4,445,158
HodorReflexes - DPS & ULT tracker3,446,840
RaidNotifier Updated2,789,746
Item Set Browser1,893,031
LibCharacterKnowledge1,771,857
Loot Log1,608,502