Skip to content

GetEntityState

One key of an entity’s bag, while the entity is in view.

GetEntityState(id, key)
Parameter Type
id number the entity’s id, as the mode’s SetEntityState names it
key string the key

string | nil

local owner = GetEntityState(id, "owner")

GetEntityStates · OnStateChange · the State bags group of the index