Garry's Mod Wiki

GM:PrePlayerDraw

  boolean GM:PrePlayerDraw( Player player, number flags )

Description

Called before the player is drawn.

See also GM:PostPlayerDraw.

Arguments

1 Player player
The player that is about to be drawn.
2 number flags
The STUDIO_ flags for this render operation.

Returns

1 boolean
Return true to prevent default player rendering, which hides the player.