Skip to main content
Shared Compare against enums, never against raw strings. Your editor autocompletes them and flags typos.

Core enums

Enums.Lifecycle

Booting, Configured, Initializing, Starting, Ready, Stopping, Stopped. Values equal their names.
InvalidPayload (5), RateLimited (1), ConcurrencyExceeded (2), UnknownCallback (3), NotLoaded (2), NoPermission (3), OutOfRange (5), InvalidDeathState (5). Values equal their names.
Event names by group: Lifecycle, Players, Guard, and one group per module that emits events. Values are ug-core:<Group>:<Key>.
See Events reference.
Hook names by group. Values are <Group>:<Key>.
See Hooks reference.

Module enums

Modules add their own enums and event and hook groups. In your resource, they appear once ug-core has replicated its enabled modules, so read them after UgCore.Lifecycle.On('Ready', ...). Enums of disabled modules never exist. The players module, always enabled, adds: