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.
Clientside entities are not garbage-collected, thus you must store a reference to the object and call CSEnt:Remove manually.
Clientside models will occasionally delete themselves during high server lag.

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 rendergroup of the entity, see Enums/RENDERGROUP.

Returns

1 CSEnt
Created client-side model. ( C_BaseFlex )

Page Links


Special Pages


Wikis

?

Render Time: 41ms

Session 0
DB GetPage 3
Generate Html 16
SaveChanges 9
Render Body 0
Render Sidebar 11