Garry's Mod Wiki

DModelPanel:PreDrawModel

  boolean DModelPanel:PreDrawModel( Entity ent )

Description

Called before the entity of the DModelPanel is drawn.

Arguments

1 Entity ent
The clientside entity of the DModelPanel that has been drawn.

Returns

1 boolean
Return false to stop the entity from being drawn. This will also cause DModelPanel:PostDrawModel to stop being called.