Rust
182 ratings
The Ultimate Key Binds Guide (chat & console commands)
By reddBDGR and 1 collaborators
In this discussion, i will show you how to bind keys to execute certain chat commands ingame, this can be useful to quickly teleport home, toggle the remover tool, accept teleport requests.... basically anything that can be used as a command in chat, all without using macros.
4
2
   
Award
Favorite
Favorited
Unfavorite
- PLEASE KEEP IN MIND -
There are no spelling / punctuation mistakes in any of the command examples. They will need to be executed as stated below.

ALSO

I am only sharing the knowledge that i have gained over my time administrating and playing rust. Some of the information below MAY be incorrect or outdated. If so, feel free to add me on steam and inform me on what i have done wrong
Commands without spaces
To execute commands without spaces, it is easy to setup.
  1. Press F1 to open your console

  2. Decide what key you want to bind the command to

  3. Type this command into the console bind <key> "chat.say /<command>"

    Example : bind g "chat.say /remove"


    This will bind the "G" key to toggle the remover tool.

  4. Next execute the writecfg command in your console to save the config so it won't reset when you next launch the game
Commands with spaces
Executing commands with spaces is a little trickier, but if you are able to ♥♥♥♥-talk kids in rust, you should be able to do it.

  1. Press F1 to open your console

  2. Decide what key you want to bind the command to

  3. Type this command into the console bind <key> "chat.say "/command""

    Example : bind g "chat.say "/home 1""

    This will bind the "G" key to initiate the teleport to your home.

  4. Here is the "tricky" part, to have this save for your next rust adventure, type writecfg into console then, navigate to your rust folder and find the key.cfg file ( Steam\steamapps\common\Rust\cfg ) and open the keys.cfg file. Now what you want to do is find the line that your bind is stored on, it should look a little different from the way you entered it (there will be an addiional \)

    Example : bind g "chat.say \"/home 1"

  5. you now want to remove the \ before the " at the start of your command. Save this file, then right click it and navigate to properites. Under the general tab, you will want to tick the box at the bottom that is: Read-Only. MAKE SURE YOU HAVE CLOSED RUST BEFORE YOU DO THIS

  6. Once you have completed these steps you should be able to use the bind without it getting reset.

Additional Information : If you do not do the last 3 steps, the bind will still work but will get reset when you next launch your game.

Disclaimer

If you are kicked from your game after changing the keys.cfg file to read-only or are unable to re-join the server, this could be an issue caused by plugins on the server, or by doing certain actions in the menu. This issue is currently being worked on.
Thanks to Brengun from the NoBull Australian modded server[nobull.net.au] for help with this.
Unbinding
Unbinding is easy, heres how :

  1. Press F1 to open the console

  2. type in this command: bind <key> ""

    Example: bind g ""

    This will bind the key to nothing or, unbind it.

(alternativley you can go into your settings ingame and click RESET TO DEFAULT )
Dictionary of all bindable keys
Note : These are the things that you will replace <key> with when typing your command into your console. The first entry is what it looks like on your keyboard, and the second entry is what you need to replace <keys> with.

Example:

Key
Bind Name
~
backquote

Letters (these are all pretty self explanatory)

q
w
e
r
t
y
u
i
o
p
a
s
d
f
g
h
j
k
l
z
x
c
v
b
n
m

Top row numbers

1
2
3
4
5
6
7
8
9
0

Symbols

Key
Bind Name
~
backquote
-
minus
=
equals
left square bracket
leftbracket
right square bracket
rightbracket
\
backslash
;
semicolon
'
quote
.
comma
.
period
/
slash

Arrows

Key
Bind Name
uparrow
downarrow
leftarrow
rightarrow

Other keys (shift, tab, etc.)

tab
capslock
leftshift
leftcontrol
windowskey = leftcommand
leftalt
spacebar = space
rightalt
menu
rightcontrol
rightshift
enter
backspace

Function keys

f1
f2
f3
f4
f5
f6
f7
f8
f9
f10
f11
f12

Keys around page up/down (idk what this area is called)

print screen = <nobind?>
scrolllock
pause
insert
home
delete
end
pageup
pagedown

Numpad (if you have one)

Key
Bind Name
numlock
numlock
/
keypaddivide
*
keypadmultiply
-
keypadminus
+
keypadplus
enter
keypadenter
.
keypadperiod
0
keypad0
1
keypad1
2
keypad2
3
keypad3
4
keypad4
5
keypad5
6
keypad6
7
keypad7
8
keypad8
9
keypad9

Mouse buttons

Key
Bind name
left mouse click
mouse0
right mouse click
mouse1
middle mouse click
mouse2
scroll up
mousewheelup
scroll down
mousewheeldown

Macros

Macro type
Bind name
Description
Mouse macros
mouse4 | mouse5
brought to my attention by SirElegant , you are able to bind the macros on your mouse (if you have any). Changing the number after "mouse" will change which macro it is set to.
Please note : You will have to play around with this kind of bind, all mice are different.

IF I HAVE FORGOTTEN ANY PLEASE LET ME KNOW SO I CAN ADD THEM
Dictionary of useful commands
- THIS WILL BE UPDATED IN THE FUTURE -

Here i will post an updated list of useful / common commands that can be used together with these binds (for those people who lack the knowledge or creativity) and will split them up into different categories to make it easier to find what your looking for.


Vanilla console commands

The commands below will be some basic commands regarding player movement, settings and other things alike that can be used in both modded and vanilla servers.

Command
Description
kill
This will kill your player and take you to the respawn screen
+jump
This will bind the button to "jump"


Server admin commands

These commands are directed at server owners / administrators and can make running / managing the server a bit easier without having to manually write out all the commands. A full list can be found HERE[docs.google.com]

Command
Description
noclip
This command will toggle noclip
debugcamera
This command will toggle the "spectator" like view, useful for taking screenshots, making videos. You will also be invisible while you are in this mode
weather.fog <value>
setting value to 0 will turn off fog on the key press
weather.rain <value>
"
weather.clouds <value>
"
server.radiation <true/false>
Enables / disables radiation
ent kill
Kills the entity you are looking at (can be used in vanilla, works like the remover tool)
ent unlock
Unlocks the entity you are looking at (e.g. codelock)
ent who
Returns the steamID of whoever placed the entity you are looking at
xmas.refill
Forces 2015 christmas event (presents spawn on the ground)
< >
51 Comments
Black. Jul 2, 2021 @ 1:03am 
if u want to bind 2 chat commands do this: bind <key> "chat.say "/kit bow";chat.say "/kit medic""
Hazode Mar 19, 2021 @ 5:52am 
@notexd

bind x sprint; forward
notexd Feb 22, 2021 @ 7:21am 
should also put an auto run command
Duke403 Feb 6, 2021 @ 6:40pm 
is there a way to bind graphics.fov 90 to mouse1 release?
Blatnik Jan 2, 2021 @ 10:44am 
bind for:
noclip and vanish 1 button
daytime for admin only
toggle view trough walls

Please.
Panda-895- Dec 8, 2020 @ 2:56am 
do you know if i can use stream deck to bind keys im not to sure what half the keys are bind to already so is it also possible to bind commands to 2 keys like ctrl+y etc
smolov Nov 7, 2020 @ 3:20pm 
Is there a way to bind graphics.vm_horizontal_flip "true";"false" to a single key so u can switch viewmodel position with a single key like capslock, ive tried: bind capslock graphics.vm_horizontal_flip "true";graphics.vm_horizontal_flip "false". But this doesn't work.
Elixil3 Jun 10, 2020 @ 6:34pm 
For those looking for combinations this was added not too long ago and can be use as follows;

bind [leftalt+b] chat.say /backpack
bind [leftshift+k] kill

the combination needs to be enclosed in brackets []
Manic May 9, 2020 @ 3:57am 
what is the bind for me to split the items by dragging with the mouse wheel?
CL4P Apr 13, 2020 @ 10:04am 
is there a way to use keycombos for a bind?
like this for example:

bind shift+R ent kill
bind ctrl+1 /bgrade 1
bind ctrl+2 /bgrade 2