Skip to main content
Shared Compare against enums, never against raw strings. Your editor autocompletes them and flags typos, and a renamed value updates every user. ug-core follows the same rule: its repository check rejects error codes, event names, hook names and statebag keys spelled out outside the enum files.

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), WeaponMismatch (5). Values equal their names.
Warn (warn), Kick (kick), Ban (ban), mildest first. The action of Guard:BeforeAction. A hook MAY pick a milder one.
Event names by group. Values are ug-core:<Group>:<Key>.
See Events reference.
Hook names by group. Values are <Group>:<Key>.
See Hooks reference.
Statebag keys. StateBags index Player(source).state and LocalPlayer.state, GlobalState indexes GlobalState. Values are ug-core:<Key>. See Statebags.

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(UgCore.Enums.Lifecycle.Ready, ...). Enums of disabled modules never exist. The players module, always enabled, adds: