GetEntityState
A key of an entity’s bag.
Syntax
Section titled “Syntax”GetEntityState(id, key)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
key |
string | the key |
Returns
Section titled “Returns”string | nil
Example
Section titled “Example”local owner = GetEntityState(horse, "owner")See also
Section titled “See also”SetEntityState · GetEntityStates · the State bags group of the index
