Garry's Mod Wiki

render.PushFlashlightMode

  render.PushFlashlightMode( boolean enable = false )

Description

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.

Arguments

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