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

Lookup

table
GetAll is sorted by source.

Metadata

Session metadata. It lives while the player is connected.
string
required
camelCase.
any
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.

Death state

See the Death system for states, rules and the downed flow.

Read

table
table

Change

From any other state they return invalid_args. A cancelled hook returns no_permission.
UgReviveOptions
vector4
Respawn position. Defaults to respawn.coords in config/players.lua. Respawn always clears injuries.