Garry's Mod Wiki

GM:PrePlayerDraw

  boolean GM:PrePlayerDraw( Player player, number flags )

Description

Called before the player is drawn.

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
Prevent default player rendering. Return true to hide the player.