Flashing Enable? In Gamemode?

So i host this server with the gamemode of underdone. Is there any way for me to enable “flashlight”. Because when players press the f key or whatever it dont work. Im guessing its disabled, so i want to know the file where i enable it.

Search for these functions in the files.

Player:Flashlight

Player:AllowFlashlight

i checked like every file in the gamemode directory man… cant find it :frowning:

Yo m8, those aren’t the file names. Those are the player functions to allow players to use flashlights.

You put that in, lets say [LUA]/gamemode/insert-gamemode-here/shared.lua[/LUA]

and do
[lua]
ply:Flashlight(false)
ply:AllowFlashlight(false)
[/lua]

Source(s)

http://forum.facepunch.com/showthread.php?t=1458345&p=47421099&viewfull=1#post47421099

ik but i cant find the two codes in that file or do i have to add them myself?

[editline]30th March 2015[/editline]

i looked in this directory gamemodes/(gamemodename)/gamemode/shared.lua