GetOutfitName

From ESOUI Wiki

Jump to: navigation, search

This function returns the name of one of the player's outfits.

Arguments

outfitIndex
A number between 1 and GetNumUnlockedOutfits() indicating the outfit slot to equip. If this number is out of bounds, the game will return an empty string; if the number is nil, the game returns the name of Outfit 1; and other values of the wrong type will throw a Lua error.

Example

local index = GetEquippedOutfitIndex()
if index then
   local name = GetOutfitName(index)
   d("You're wearing " .. name .. ". Stylish!")
else
   d("No outfit? But character customization is fun! Head to a Dye Station and give it a try.")
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox