GetPlayerState
A key of a player’s bag.
Syntax
Section titled “Syntax”GetPlayerState(pid, key)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
key |
string | the key |
Returns
Section titled “Returns”string | nil
Example
Section titled “Example”local team = GetPlayerState(pid, "team")See also
Section titled “See also”SetPlayerState · GetPlayerStates · the State bags group of the index
