GetGroupLeaderUnitTag
ESO Lua API function — used by 49 of the 3,030 addons we indexed (combined 4,100,063 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetGroupLeaderUnitTag()Returns: string leaderUnitTag
Real usage — from pChat (Chat customization & help: look/notification/sound/automation/history)
rESO, gESO, bESO = ZO_ChatSystem_GetCategoryColorFromChannel(CHAT_CHANNEL_ZONE_LANGUAGE_1)
elseif channel == CHAT_CHANNEL_PARTY and from and db.groupLeader and zo_strformat(SI_UNIT_NAME, from) == GetUnitName(GetGShort excerpt from the shipping addon pChat (Chat customization & help: look/notification/sound/automation/history) — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| pChat (Chat customization & help: look/notification/sound/automation/history) | 1,832,805 |
| OdySupportIcons - Group Role Icons & More | 484,590 |
| Faster Travel (Wayshrines menu & Teleporter) | 369,697 |
| EasyTravel | 293,327 |
| Shissu's Guild Tools | 186,581 |
| Provinatus - Heads Up Display | 91,821 |