Skip to main content
Server Proxied to ug-core. On clients, use UgCore.LocalPlayer.

Death state

Downed and dead states, injuries, revive and respawn.

Lookup

table
GetAll is sorted by source. Each result is a player object with methods for money, job, gang, permissions, death state and more:

Metadata

Session metadata. It lives while the player is connected.
string
required
camelCase.
any
Data only: booleans, finite numbers, strings and bounded tables. nil deletes the key.
boolean
Copies the key to the ug-core:Metadata statebag. Every client can read it, so it MUST NOT hold secrets.
GetMetadata without a key returns every key.

Kick

string
Shown to the player. A generic message when nil.

Errors

Invalid keys, values, regions, options and coordinates raise.

Events

Loaded fires when a character is loaded, or at join without the characters module.

Statebags

Index them with UgCore.Enums.StateBags. See Statebags.