Player statebags
Set by the server only, onPlayer(source).state. Index them with UgCore.Enums.StateBags, never with the string:
Read them
React to changes
client.lua
Global state
Indexed withUgCore.Enums.GlobalState.
Read player state without a single export call.
Player(source).state. Index them with UgCore.Enums.StateBags, never with the string:
UgCore.Enums.GlobalState.