Sick Gaming
How to bind keys in Garry's Mod to Commands - Printable Version

+- Sick Gaming (https://www.sickgaming.net)
+-- Forum: Our Game Servers (https://www.sickgaming.net/forum-58.html)
+--- Forum: GMOD DarkRP (https://www.sickgaming.net/forum-59.html)
+---- Forum: Discussion (https://www.sickgaming.net/forum-65.html)
+---- Thread: How to bind keys in Garry's Mod to Commands (/thread-82993.html)



How to bind keys in Garry's Mod to Commands - xSicKx - 08-29-2016

This is very simple and a lot of people ask me how to do it.


First.) pull up your console by pressing ~ (tilde) in game.
Second.) Use this format to bind the key you want.
Bind (key you would like) "say (what you want to say or !/command)"

Make sure to put quotes "around the text and /command"
Won't work without  it.


Here is how i binded one of my keys:

Bind x "say !noclip"
or
bind x "ulx noclip"
^^This doesn't show up in chat, but shows up in console. All other commands work like that but I personally would not use the say command just use ulx command.
So I can easy noclip without typing it out.

also did ulx command, xgui

Bind b "say !xgui"
or
bind b "ulx menu"
^^This makes it so people cant see that you are clicking your bind, only shows in console.
Pull up the xgui on the fly Wink

Alright guys, hope that helped.


RE: How to bind keys in Garry's Mod to Commands - MarthaTartaglia - 04-14-2020

Thanks for the info! helped alot!