C_AddOns. LoadAddOn
functionimplementedavailable in: camelot
Loads the specified LoadOnDemand addon.
function C_AddOns.LoadAddOn( name: uiAddon): (boolean?, string?)Parameters
| name | type | description |
|---|---|---|
name | uiAddon | The 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
| # | name | type | description |
|---|---|---|---|
| 1 | loaded | boolean? | true if the addon was loaded successfully, or if it has already been loaded. |
| 2 | value | string? | 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 ↗.