Garry's Mod Wiki


  boolean surface.DisableClipping( boolean disable )


We advise against using this. It may be changed or removed in a future update.
Alias of DisableClipping so use that instead.

Enables or disables the clipping used by the VGUI that limits the drawing operations to a panels bounds.

Identical to DisableClipping. See also Panel:NoClipping.


1 boolean disable
True to disable, false to enable the clipping


1 boolean oldState
Whether the clipping was enabled or not before this function call