Garry's Mod Wiki

Entity:SetNoDraw

  Entity:SetNoDraw( boolean shouldNotDraw )

Description

Sets if the entity's model should render at all.

If set on the server, this entity will no longer network to clients, and for all intents and purposes cease to exist clientside.

The entity can still be manually rendered via Entity:DrawModel in appropriate hooks.

Arguments

1 boolean shouldNotDraw
true disables drawing