Skip to content

GetPlayerState

A key of a player’s bag.

GetPlayerState(pid, key)
Parameter Type
pid number the player
key string the key

string | nil

local team = GetPlayerState(pid, "team")

SetPlayerState · GetPlayerStates · the State bags group of the index