Garry's Mod Wiki

ClientsideModel

CSEnt ClientsideModel( string model, number renderGroup = RENDERGROUP_OTHER )

Description

Creates a non physical entity that only exists on the client. See also ents.CreateClientProp.

Parented clientside models will become detached if the parent entity leaves the PVS.

Issue Tracker: 861
Clientside entities are not garbage-collected, thus you must store a reference to the object and call CSEnt:Remove manually.

Issue Tracker: 1387
Clientside models will occasionally delete themselves during high server lag.

Issue Tracker: 3184

Arguments

1 string model
The file path to the model.

Model must be precached with util.PrecacheModel on the server before usage.
2 number renderGroup = RENDERGROUP_OTHER
The render group of the entity for the clientside leaf system, see Enums/RENDERGROUP.

Returns

1 CSEnt
Created client-side model. ( C_BaseFlex )

Page Links


Special Pages


Wikis

?

Render Time: 92ms

DB GetPage 53
Generate Html 7
SaveChanges (1) 10
Render Body 0
Render Sidebar 19