Garry's Mod

Garry's Mod

61 ratings
How to bind keys in GMOD
By catinsurance
In this guide you'll learn how to bind keys in GMOD. For example, you can make a bind that says a certain message in chat or runs a certain command.
2
   
Award
Favorite
Favorited
Unfavorite
Enabling the Developer Console
You'll need to enable the dev console if you want to bind keys. Fortunately, this is quite simple.

  • First, go into your Options menu.
  • Then, select the Keyboard tab.
  • After that, select the "Advanced" button.
  • Check the "Enable Developer Console" button.
  • You can now open the developer console by press ~ !
Creating a bind
So now that you have the developer console enabled, we need to create a keybind.
This is pretty simple as long as you pay attention.

Binding a command to a key
  • Press [~] to open the developer console.
  • Type in the console "bind" then after a space press the key you want to bind an action to.
  • Next, you'd type the command you want binded to that key.
  • For example, if I wanted to bind "stopsound" to the key

    , then I'd type:

    bind p stopsound[/b][/list]

    What if I wanted to bind a message that will be said in chat to a key?
    That is possible, too, but it is a little tricky.

    • Press [~] to open the developer console.
    • Type in the console "bind" then after a space press the key you want to bind an action to.
    • This part is tricky, so follow very carefully!
    • Type ["say ] then what you want said in chat.
    • For example, if I wanted to bind an advert to the key

      that will say "coolcool" then I'd type:

      bind p "say /advert coolcool[/b][/list]

      And that's all! Very simple. Please favorite and/or thumbs up if this helped you ;)

58 Comments
Enterfector 26 Jan @ 11:11am 
What bind is the jump command?
Aze 26 Dec, 2024 @ 3:59am 
what do I type for ai_disable, bind (key) ai_disable ?
crispy_dip 17 Nov, 2024 @ 1:39pm 
what about modded controls?
dummity 2 Nov, 2024 @ 4:41am 
how do i bind F1 F2 F3 and so on?
MrCheese 5 Aug, 2024 @ 2:43am 
i accidently unbinded my e...
Philly_Fail™ 3 Aug, 2024 @ 9:49am 
what about multiple cmd on one keys i've seen it done i want to have two SAM menu cmds bound to V for dev purposes
ZanyJacob 2 Aug, 2024 @ 3:08am 
It won't work with act dance
pizzar 22 Jun, 2024 @ 8:02am 
how do I bind it to be held down tho
ZANE2go 21 Jun, 2024 @ 6:55pm 
how do i bind my zoom back and my weapon on saftey?
Yakub 3 Mar, 2024 @ 7:40pm 
how do you bind something to the Alt key?