Garry's Mod Wiki

Revision Difference

ents.GetAll#552414

<function name="GetAll" parent="ents" type="libraryfunc"> <description> Returns a table of all existing entities. <note>This function returns a sequential table, meaning it should be looped with <page>Global.ipairs</page> instead of <page>Global.pairs</page> for efficiency reasons.</note>⤶ ⤶ Consider using <page>ents.Iterator</page> instead for better performance.⤶ <note>This function returns a sequential table, meaning it should be looped with <page>Global.ipairs</page> instead of <page>Global.pairs</page> for efficiency reasons.</note>⤶ </description> <realm>Shared</realm> <rets> <ret name="" type="table">Table of all existing <page>Entity</page>s.</ret> </rets> </function>