Skip to content

GetPlayerStates

A player’s bag as a table.

GetPlayerStates([pid])
Parameter Type
pid number the player; nil = yourself (optional)

table - {key = value}, empty when the player has no bag

local mine = GetPlayerStates()

GetPlayerState · the State bags group of the index