• Flashing Enable? In Gamemode?
    4 replies, posted
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. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/Flashlight]Player:Flashlight[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/AllowFlashlight]Player:AllowFlashlight[/url]
i checked like every file in the gamemode directory man... cant find it :(
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) [url]http://facepunch.com/showthread.php?t=1458345&p=47421099&viewfull=1#post47421099[/url] [url]http://wiki.garrysmod.com/page/Player/AllowFlashlight[/url]
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
Sorry, you need to Log In to post a reply to this thread.