Garry's Mod Wiki

GM:PreDrawSkyBox

  boolean GM:PreDrawSkyBox()

Description

Called before the 3D sky box is drawn. This will not be called for maps with no 3D skybox, or when the 3d skybox is disabled. (r_3dsky 0)

See also GM:PostDrawSkyBox

This is a rendering hook which provides a 3d rendering context.

Returns

1 boolean
Return true to disable skybox drawing (both 2D and 3D skybox)