Garry's Mod Wiki

Revision Difference

Player:AllowFlashlight#547810

<function name="AllowFlashlight" parent="Player" type="classfunc"> <description>Sets if the player can toggle their flashlight. Function exists on both the server and client but has no effect when ran on the client.</description> <realm>Shared</realm> <file line="211">lua/includes/extensions/player.lua</file> <file line="210">lua/includes/extensions/player.lua</file> <args> <arg name="canFlashlight" type="boolean">True allows flashlight toggling</arg> </args> </function>