Garry's Mod Wiki


  render.PushFlashlightMode( boolean enable = false )


Enables the flashlight projection for the upcoming rendering.

We advise against using this. It may be changed or removed in a future update. This will leave models lit under specific conditions. You should use render.RenderFlashlights which is meant as a direct replacement for this function.


1 boolean enable = false
Whether the flashlight mode should be enabled or disabled.