Garry's Mod Wiki

Player:CanUseFlashlight

  boolean Player:CanUseFlashlight()

Description

Returns true if the player's flashlight hasn't been disabled by Player:AllowFlashlight.

This is not synchronized between clients and server automatically!

Returns

1 boolean
Whether the player can use flashlight.