Garry's Mod Wiki

Revision Difference

Player:CanUseFlashlight#560253

<function name="CanUseFlashlight" parent="Player" type="classfunc"> <description> Returns true if the player's flashlight hasn't been disabled by <page>Player:AllowFlashlight</page>. <note>This is not synchronized between clients and server automatically!</note> </description> <realm>Shared</realm> <file line="211">lua/includes/extensions/player.lua</file> <file line="183">lua/includes/extensions/player.lua</file> <rets> <ret name="" type="boolean">Whether the player can use flashlight.</ret> </rets> </function>