v0.13.8

C_AddOns.LoadAddOn

functionimplementedavailable in: camelot

Loads the specified LoadOnDemand addon.

signaturewowlua
function C_AddOns.LoadAddOn(    name: uiAddon): (boolean?, string?)

Parameters

nametypedescription
nameuiAddonThe name of the addon to be queried, or an index from 1 to C_AddOns.GetNumAddOns. The state of Blizzard addons can only be queried by name.

Returns

#nametypedescription
1loadedboolean?true if the addon was loaded successfully, or if it has already been loaded.
2valuestring?Locale-independent reason why the addon could not be loaded e.g. "DISABLED", otherwise returns nil if the addon was loaded.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (AddOns system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.