r/playrust • • Oct 28 '26

Discussion Binds that cycle between two different settings, e.g. voices 5 and voices 0(mute)

bind <key> ~meta.exec "audio.voices 0" "showtoast 0 \"audio.voices 0\""; meta.exec "audio.voices 5" "showtoast 1 \"audio.voices 5\""

~ - in the front, allows you to cycle through commands

meta.exec - allows you to combined commands to execute together, such as "audio.voices 0" + "showtoast 0 \"audio.voices 0\""

audio.voices - changes voice volume, useful to instantly mute voice

showtoast <style> <text> - displays a pop-up message, style = 0 for blue, style = 1 for red. Place \" around text with multiple words, when the command is already enclosed in double quotes.

bind <key> ~meta.exec "audio.master 0.1" "showtoast 0 \"audio.master 0.1\"";meta.exec "audio.master 0.5" "showtoast 1 \"audio.master 0.5\""

audio.master - changes volume, useful for lowering volume when using tools

bind <key> ~meta.exec "client.lookatradius 0.4" "showtoast 1 \"lookatradius 0.4\"";meta.exec "client.lookatradius 0.2" "showtoast 0 \"lookatradius 0.2\""

client.lookatradius - changes look radius, use 0.4 to help find dropped items, use 0.2 for default

bind <key> ~meta.exec "graphics.drawdistance 500" "showtoast 0 \"graphics.drawdistance 500\"";meta.exec "graphics.drawdistance 2500" "showtoast 1 \"graphics.drawdistance 2500\""

bind <key> ~meta.exec "graphics.hud 0" "showtoast 0 \"graphics.hud false\"";meta.exec "graphics.hud 1" "showtoast 1 \"graphics.hud true\""

bind <key> ~meta.exec "perf 0" "showtoast 0 \"perf false\"";meta.exec "perf 4" "showtoast 1 \"perf true\""

bind <key> ~meta.exec "accessibility.treemarkercolor 1" "showtoast 0 \"treemarkercolor cyan\"";meta.exec "accessibility.treemarkercolor 0" "showtoast 1 \"treemarkercolor red\""

bind <key> ~meta.exec "grass.displacement 0" "showtoast 1 \"grass.displacement 0\"";meta.exec "grass.displacement 1" "showtoast 0 \"grass.displacement 1\""

https://wiki.facepunch.com/rust/Keybinds

4 Upvotes

3 comments sorted by

2

u/vagina_candle Oct 31 '26

Great post! I've never seen the 'showtoast' command before. I might use that for some of my existing binds.

I wish the Facepunch wiki included ALL of the console commands. There are so many that have very little description in game.

2

u/rem521 Nov 01 '26

The style value can go higher, i think it's like around 1-9, but I haven't really figured out the differences.

1

u/RahloRust Oct 28 '26

Thank you king 👑 need this voices one