Garry's Mod Wiki

ents.FindByModel

  table ents.FindByModel( string model )

Description

Gets all entities with the given model, supports wildcards. This works internally by iterating over ents.GetAll.

This currently only supports trailing asterisks (*) for wildcards.

Issue Tracker: 2872

Arguments

1 string model
The model of the entities to find.

Returns

1 table
A table of all found entities.