Garry's Mod Wiki

Revision Difference

Player:Flashlight#515970

<function name="Flashlight" parent="Player" type="classfunc"> <description>Enables/Disables the player's flashlight</description> <realm>Server</realm> <args> <arg name="isOn" type="boolean">Turns the flashlight on/off</arg> </args> </function> ⤶ {{Example⤶ | Description = Turns off and disables the player's flashlight⤶ | Code = Entity( 1 ):Flashlight(false)⤶ ⤶ <example>⤶ <description>Turns off and disables the player's flashlight</description>⤶ <code>⤶ Entity( 1 ):Flashlight(false)⤶ Entity( 1 ):AllowFlashlight(false) }} </code>⤶ ⤶ </example>