Garry's Mod Wiki

Revision Difference

Player:CanUseFlashlight#547811

<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="212">lua/includes/extensions/player.lua</file> <file line="211">lua/includes/extensions/player.lua</file> <rets> <ret name="" type="boolean">Whether the player can use flashlight.</ret> </rets> </function>