ESODecoded

GetAchievementRewardTitle

ESO Lua API function — used by 54 of the 3,030 addons we indexed (combined 6,003,687 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetAchievementRewardTitle(integer achievementId)

Returns: bool hasRewardOfType, string titleName

Real usage — from RaidNotifier Updated

	elseif type(override) == "number" then --get override title from achievementId
		local hasRewardOfType, titleName = GetAchievementRewardTitle(override, playerGender) --gender is 1 or 2
		if hasRewardOfType and titleName then

Short excerpt from the shipping addon RaidNotifier Updatedits 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
RaidNotifier Updated2,789,746
WPamA (What Pledges at my Alts)735,283
Caro's Skill Point Saver (Respec Skill Lines, Champion Points, Gear, Quickslots, Appearances)364,055
Votan's Achievements Overview330,065
FCM Quest Tracker199,980
SuperStar - Seasonal Update178,124