Skip to content

GetEntityStates

An entity’s bag as a table.

GetEntityStates(id)
Parameter Type
id number the entity’s id

table - {key = value}, empty when the entity has no bag or is out of view

for key, value in pairs(GetEntityStates(id)) do print(key, value) end

GetEntityState · the State bags group of the index