Garry's Mod Wiki

Revision Difference

Entity:GetTable#561947

<function name="GetTable" parent="Entity" type="classfunc"> <description>Returns the table that contains all script values saved within the entity.</description>⤶ <description>⤶ Returns a <page>table</page> that contains all lua-based key-value pairs saved on the <page>Entity</page>.⤶ ⤶ For retrieving engine-based key-value pairs, see <page>Entity:GetSaveTable</page>⤶ </description>⤶ <realm>Shared</realm> <rets> <ret name="" type="table">The entity's Lua table, returns nil if called on a NULL entity.</ret>⤶ <ret name="" type="table">⤶ A table of the lua data stored on the Entity, or `nil` if the Entity is NULL.⤶ </ret>⤶ </rets> </function>