Garry's Mod Wiki

Revision Difference

Player:Flashlight#527188

<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</description> <code> Entity( 1 ):Flashlight( false ) Entity( 1 ):AllowFlashlight( false ) </code> </example>