Garry's Mod Wiki

Revision Difference

GM:PrePlayerDraw#553294

<function name="PrePlayerDraw" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description>Called before the player is drawn.</description> <realm>Client</realm> <args> <arg name="player" type="Player">The player that is about to be drawn.</arg> <arg name="flags" type="number">The <page text="STUDIO_">Enums/STUDIO</page> flags for this render operation.</arg> </args> <rets> <ret name="" type="boolean">Prevent default player rendering. Return `true` to hide the player.</ret> </rets> </function>