Garry's Mod Wiki

Garry's Mod Wiki

  string or nil Entity:GetModel()

Description

Gets the model of given entity.

This does not necessarily return the model's path, as is the case for brush and virtual models. This is intentional behaviour, however, there is currently no way to retrieve the actual file path.

This also affects certain models that are edited by 3rd party programs after being compiled.

Returns

1 string or nil
The entity's model. Will be a filesystem path for most models.

This is guaranteed to be lower case.

This will be nil for entities which cannot have models, such as point entities.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...