ESODecoded

IsUnitGroupLeader

ESO Lua API function — used by 72 of the 3,030 addons we indexed (combined 9,642,941 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsUnitGroupLeader(string unitTag)

Returns: bool isGroupLeader

Real usage — from Provision's TeamFormation : Teammate Radar

	local updateIsNecessaryOnSameZone = updateIsNecessary(index, "sameZone", sameZone)
	local isGroupLeader = IsUnitGroupLeader(unitTag)
	local updateIsNecessaryOnGrLeader = updateIsNecessary(index, "isGroupLeader", isGroupLeader)

Short excerpt from the shipping addon Provision's TeamFormation : Teammate Radarits 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
HodorReflexes - DPS & ULT tracker3,446,840
Provision's TeamFormation : Teammate Radar1,506,270
Foundry Tactical Combat (FTC)1,097,601
Dungeon Tracker1,023,919
OdySupportIcons - Group Role Icons & More484,590
CyrHUD325,521