• Binding keys?
    9 replies, posted
How do you bind a Console command to a key?
/bind [command] [key] If that's not it then try /bind [key] [command]
[QUOTE=Zedicus Mann;27319387]/bind [command] [key] If that's not it then try /bind [key] [command][/QUOTE] Wow you are so dumb go in the console and type "bind key command", however if you want to do it with lua then you the keypress hook.
[lua] LocalPlayer():ConCommand("bind w +jump") [/lua]
[QUOTE=zzaacckk;27319572][lua] LocalPlayer():ConCommand("bind w +jump") [/lua][/QUOTE] RunConsoleCommand and Player.ConCommand are subject to a blacklist of blocked commands, including "bind". See here: [url]http://wiki.garrysmod.com/?title=G.RunConsoleCommand[/url]
[QUOTE=zzaacckk;27319572][lua] LocalPlayer():ConCommand("bind w +jump") [/lua][/QUOTE] bind is blocked
ty i figured it out.
Cool, and it looks as though blown25 is the new Cubar.
UGH I believe there is a sticky somewhere that says something along the lines of this: "Go on wiki.garrysmod.com before you post, if you can't find your answer, post here on facepunch"
[QUOTE=Andriko1;27320839]UGH I believe there is a sticky somewhere that says something along the lines of this: "Go on wiki.garrysmod.com before you post, if you can't find your answer, post here on facepunch"[/QUOTE] because you follow the sticky all the time right?
Sorry, you need to Log In to post a reply to this thread.