Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:ShouldDrawLocalPlayer( Player ply )


Called to determine if the LocalPlayer should be drawn.

If you're using this hook to draw a player for a GM:CalcView hook, then you may want to consider using the drawviewer variable you can use in your CamData structure table instead.

This hook has an internal cache that is reset at the start of every frame. This will prevent this hook from running in certain cases. This cache is reset in cam.Start and in a future update in render.RenderView when rendering extra views.


1 Player ply
The player.


1 boolean
true to draw the player, false to hide.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...