• Server side methods using key_enums, rather than in_enums?
    3 replies, posted
I am developing a mod where many keys are used, the problem is, to detect the key presses i am using KeyDown() in a loop, however i am running out of keys. I then looked and found a couple of other ways like input.iskeydown, and "playerbindpress" but none of those will work correctly. Is there any way to detect more keys than the In_ENUM keys on server side? Thanks
[URL="https://wiki.garrysmod.com/page/input/IsKeyDown"]input.IsKeyDown[/URL] is the only other way, but as you know you can't access that serverside. I think [URL="https://wiki.garrysmod.com/page/Player/KeyDown"]ply:KeyDown[/URL] uses networking anyway, which you'll probably have to do if you want to use IsKeyDown
Okay, thank you for the reply. I didn't want to use it but I guess I do need to. I do have another question. Is there a premade text file or something in gmod that i can access in lua to write a line in to detect if it is written, or do I need to make my own, because I want to make a popup menu the only pops up once, [I]ever.[/I]
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/file/Write]file.Write[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/file/Exists]file.Exists[/url] is what most addons use
Sorry, you need to Log In to post a reply to this thread.