Skip to main content

AddonState

What happened to a runtime addon on one client — see UI.Addon.

Loaded and Ready are deliberately separate: a correctly mounted VPK whose script throws reports Loaded and never reaches Ready, and that is exactly the case worth being able to tell apart.

public enum AddonState

Namespace: DeadworksManaged.Api.UI
Source: UI/UI.cs#L10

Values​

NameValueDescription
Unknown0Nothing reported. The client may not have the addon, or may not have answered yet.
Failed1The client tried to load the layout and could not — usually the VPK isn't mounted.
Loaded2The layout loaded. Its script may or may not have come up.
Ready3The addon's script registered and is receiving updates.