Garry's Mod Wiki

ents.GetAll

  table ents.GetAll()

Description

Returns a table of all existing entities.

Consider using ents.Iterator instead for better performance.

This function returns a sequential table, meaning it should be looped with ipairs instead of pairs for efficiency reasons.

Returns

1 table
Table of all existing Entitys.