Garry's Mod Wiki

Garry's Mod Wiki

  Player:Flashlight( boolean isOn )

Description

Enables/Disables the player's flashlight.Player:CanUseFlashlight must be true in order for the player's flashlight to be changed.

Arguments

1 boolean isOn
Turns the flashlight on/off

Example

Turns off and disables the player's flashlight

Entity( 1 ):Flashlight( false ) Entity( 1 ):AllowFlashlight( false )

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...