[GUIDE] How to Use Binds
#1
What are binds, and how do I use them?
This question, although paraphrased, has been asked many times when I've been around, and I thought, instead of telling every one of them, I should make this guide that (hopefully) some people might read and find useful. I will try to answer this question as best as I can.

What is it?
A bind is a term that is used when you assign a number/letter/button on your keyboard or mouse to a specific action/command. In Garry's Mod, this is done by using the Developer's Console.
Example: I press the '+' sign on my keyboard to broadcast, as president, "The laws are as follows..."
How do I do this?


How do I bind something?
Part 1 - Developer's Console

To bind a key to a command, for example, broadcasting "The laws are as follows..." you must first enable the Developer's Console.
To do so, press the Esc key and go to the Options menu. You should already be on the Keyboard tab. Click "Advanced..." and tick the box that says "Enable Developer's Console."
[Image: Bind%20tutorial%201.jpg]
You can now press OK and close the options window. To bring up the console, press the tilled (~) key at the top left of your keyboard. You can bring this up even when in-game and playing, not just in the menu.
You should see a large box pop up, it may have a lot of text in it. Ignore that, and just look for the typing box at the bottom of it. Select it, and get ready to bind your command.


Part 2 - Making Your Bind
Now you must type in something to bind the key. Once you know the layout, it isn't confusing. Remember, our example is to broadcast "The laws are as follows..."
Type bind in the console. Leave a space and then put in the key you want to bind it to - for this example, I'll assign the command to the '+' sign. What you should have is this, except with whatever key you chose to assign it to.
bind +
Now you need to type what you want to make it do when you press the '+' key.
First of all, make one space after the key you chose, and put in a double quotation mark - ("). Now, for this example, I need to broadcast something, and to do that in normal chat in-game, I would type /broadcast The laws are as follows... , and bear in mind that's using the chat (default 'y') system. The console recognises you're using chat by typing say before your command. So, after the quotation marks, with no spaces, type say and then leave a space. This is what it should look like so far:
bind + "say
What that has done, is tell the console that you're saying it, which means you're using it in chat.
You're almost there! Now type what you'd normally type in chat, which is /broadcast The laws are as follows...
Then, with no spaces after that, add in the closing quotation mark (")
[Image: Bind%20tutorial%202.jpg]
If you have typed that, you have done it! Just press enter, and when you're the president on Fearless, you just need to press '+' and that broadcast will be said!
Of course, you can do a lot more of these. For example, you can have all of your laws binded to certain keys, so when pressing them in order, you can broadcast all of your laws in segments without having to type a thing anymore.
The only problem is, the chat has a character limit, and when you're typing something in the console, it doesn't know that, so you may have your messages chopped off in chat if they're too long!
This layout for binding commands can be modified, for example:
bind \ "say Good morning sir, what would you like from our selection today?"
bind [ "say /y This is the ECPD! Pull over and put your hands up!"

As you can see, there are endless possibilities, and this is only using the chat box (You can even bind keys to make you jump)! You can even bind a key to spawn your car in!
bind ; "say /inventory volvo use 1"
As you can see, these are all using different keys, but if you bind a key to the same key you bound another command to, it will overwrite it. For example, if you bind W to do something, it will mean you can't move forward.
However, you can bind a key to multiple commands, but you must do it all in one line of text, if you just bind them individually they will overwrite each other. You cannot bind multiples of the same command (eg 'say') but if you do something like this:
bind [ "say Hey there!; act_dance"
It will mean, when you press the '[' key, you start to dance and say 'Hey there!'
To reset all keys to their defaults, go to the Options menu and click "Use Defaults".
If you want to unbind a certain key, for example, unbind the '+' key to broadcasting something as President, just type in the console:
unbind +

Here is the whole list of bind commands for Fearless, as accessible via the "Binds" tab in the F1 menu in-game.


Useful binds - General Commands


Spoiler :
bind key "say /holster"
bind key "say /sleep"
bind key "say /wakeup"
bind key "say /engine on"
bind key "say /engine off"
bind key "say /inventory battery use 1"
bind key "say /inventory boxed_pocket_small use 1"
bind key "say /inventory boxed_pocket_medium use 1"
bind key "say /inventory boxed_pocketbig use 1"

Useful binds - Cars/Petrol

bind key "say /inventory Petrol use 1"
bind key "say /inventory Banshee use 1"
bind key "say /inventory bmwgtr use 1"
bind key "say /inventory corvette use 1"
bind key "say /inventory Cabbie use 1"
bind key "say /inventory Citron use 1"
bind key "say /inventory Comet use 1"
bind key "say /inventory Golf use 1"
bind key "say /inventory Mercedes use 1"
bind key "say /inventory Ferraricabrio use 1"
bind key "say /inventory Minivan use 1"
bind key "say /inventory Hummer use 1"
bind key "say /inventory Lokus use 1"
bind key "say /inventory Lotus use 1"
bind key "say /inventory murcielago use 1"
bind key "say /inventory mustang use 1"
bind key "say /inventory Modena use 1"
bind key "say /inventory supra use 1"
bind key "say /inventory tides use 1"
bind key "say /inventory Trabbi use 1"
bind key "say /inventory volvo use 1"

Useful binds - Government Cars

bind key "say /inventory Policecar use 1"
bind key "say /inventory Ambulance use 1"
bind key "say /inventory Firetruck use 1"

Useful binds - Illegal Weaponary

bind key "say /inventory weapon_crowbar use 1"
bind key "say /inventory weapon_mad_flare use 1"
bind key "say /inventory weapon_mad_p228 use 1"
bind key "say /inventory weapon_mad_57 use 1"
bind key "say /inventory weapon_mad_usp use 1"
bind key "say /inventory weapon_mad_glock use 1"
bind key "say /inventory weapon_mad_knife use 1"
bind key "say /inventory weapon_mad_mp5 use 1"
bind key "say /inventory weapon_mad_awp use 1"
bind key "say /inventory weapon_mad_tranq use 1"
bind key "say /inventory weapon_mad_mac10 use 1"
bind key "say /inventory weapon_mad_ump use 1"
bind key "say /inventory weapon_mad_tmp use 1"
bind key "say /inventory weapon_mad_galil use 1"
bind key "say /inventory weapon_mad_g3 use 1"
bind key "say /inventory weapon_mad_m4 use 1"
bind key "say /inventory weapon_mad_ak47 use 1"
bind key "say /inventory weapon_mad_aug use 1"
bind key "say /inventory weapon_mad_m3 use 1"
bind key "say /inventory weapon_mad_xm1014 use 1"
bind key "say /inventory weapon_mad_deagle use 1"
bind key "say /inventory weapon_mad_famas use 1"
bind key "say /inventory cityrp_weapon_molotov use 1"

Useful binds - Ammo

bind key "say /inventory ammo_pistol use 1"
bind key "say /inventory ammo_rifle use 1"
bind key "say /inventory ammo_shotgun use"
bind key "say /inventory ammo_sniper use 1"
bind key "say /inventory ammo_darts use 1"

Useful binds - Mixtures


bind key "say /inventory ammo_sniperschematics create 1"
bind key "say /inventory ammo_shotgunschematics create 1"
bind key "say /inventory ammo_rifleschematics create 1"
bind key "say /inventory ammo_pistolschematics create 1"
bind key "say /inventory ammo_dartschematics create 1"
bind key "say /inventory weapon_molotovschematics create 1"

Useful binds - Donator Items

bind key "say /inventory suit1 use 1"
bind key "say /inventory suit2 use 1"
bind key "say /inventory suit3 use 1"
bind key "say /inventory suit4 use 1"
bind key "say /inventory suit5 use 1"
bind key "say /inventory suit6 use 1"
bind key "say /inventory suit7 use 1"
bind key "say /inventory suit8 use 1"
bind key "say /inventory suit9 use 1"
bind key "say /inventory suit10 use 1"
bind key "say /inventory suit11 use 1"
bind key "say /inventory suit12 use 1"
bind key "say /inventory suit13 use 1"
bind key "say /inventory suit14 use 1"
bind key "say /inventory suit15 use 1"
bind key "say /inventory suit16 use 1"
bind key "say /inventory suit17 use 1"

Useful binds - Health/Food


bind key "say /inventory health_kit use 1"
bind key "say /inventory health_vial use 1"
bind key "say /inventory nitrazepam use 1"
bind key "say /inventory steroids use 1"
bind key "say /inventory paracetamol use 1"
bind key "say /inventory baked_beans use 1"
bind key "say /inventory chinese_takeout use 1"
bind key "say /inventory alcohol use 1"
bind key "say /inventory Carrot use 1"
bind key "say /inventory AppleCider use 1"
bind key "say /inventory Coffee use 1"
bind key "say /inventory cola use 1"
bind key "say /inventory Fish use 1"
bind key "say /inventory lemonade use 1"
bind key "say /inventory milk use 1"
bind key "say /inventory Tea use 1"
bind key "say /inventory waterbottle use 1"
bind key "say /inventory watermelon use 1"

Useful binds - Black Market

bind key "say /inventory cityrp_rope use 1"
bind key "say /inventory breach use 1"
bind key "say /inventory kevlar use 1"
bind key "say /inventory cityrp_cracker use 1"
bind key "say /inventory cityrp_lockpick use 1"
bind key "say /inventory weed use 1"
bind key "say /inventory Shroom use 1"
bind key "say /inventory Injection use 1"
bind key "say /inventory Herion use 1"
bind key "say /inventory cocainee use 1"
[/spoiler

Useful binds - Act Commands Note that there is no 'say' before the command as you would normally type the act commands in the console
[spoiler]
bind key "act_robot"
bind key "act_muscle"
bind key "act_laugh"
bind key "act_bow"
bind key "act_cheer"
bind key "act_wave"
bind key "act_becon"
bind key "act_agree"
bind key "act_disagree"
bind key "act_forward"
bind key "act_group"
bind key "act_zombie"
bind key "act_dance"
bind key "act_halt"



Here are the list of bindable keys on your keyboard/mouse etc. Please note that these are also the correct way the keys should be typed in the console.
Eg. The Page up key is written as PGUP in the console.

Bindable Keys


Spoiler :
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
` (Left quote/tilde)
' (Right quote)
- (Hyphen)
= (Equals sign)
] (Right Bracket)
\ (Forward Slash)
, (Comma)
/ (Back Slash)
SPACE
ENTER
ESCAPE
PAUSE
BACKSPACE
TAB
SEMICOLON
SHIFT
CTRL
ALT
UPARROW
DOWNARROW
LEFTARROW
RIGHTARROW
INS (Insert)
HOME
PGUP (Page up)
PGDN (Page down)
DEL
END

Number pad:
KP_HOME (7)
KP_UPARROW (8)
KP_DOWNARROW (2)
KP_LEFTARROW (4)
KP_RIGHTARROW (6)
KP_PGUP (9)
KP_PGDOWN (3)
KP_5
KP_SLASH
KP_MINUS
KP_ENTER
KP_MULTIPLY
KP_SLASH
KP_INS (0)
KP_DEL

Mouse:
MWHEEL3 (Press mousewheel)
MWHEELUP (Mouse wheel scroll up)
MWHEELDOWN (Mouse wheel scroll down)



I hope I have covered this topic with enough detail so you realise what each bit is for, but it isn't too mindblowing and confusing for you. Thank you for taking the time to read this, and I hope you will all go away with the knowledge of this useful system.

Updated with pictures.

Sincerely,
ArcHammer
[Image: LkB62ld.png]

+Rep
The following 4 users Like ArcHammer's post:
  • Joykill, OztinCloud, Sgtbender2000, GRiiM
#2
Great job on creating this guide, very informative and well written.
#3
Nice guide.

But.. Is it possible to bind two commands to one key?
Kind Regards,
Floodify
#4
(04-24-2014, 02:55 PM)Floodify Wrote: Nice guide.

But.. Is it possible to bind two commands to one key?

No, your binds will overwrite eachother.

Sincerely,
ArcHammer
[Image: LkB62ld.png]

+Rep
#5
I guess this will help someone.
Well written I gotta say, good job.
#6
Good job, but thought something like this is already made in USEFULL Doc's. By privatetoast http://www.fearlessrp.net/showthread.php?tid=11786
Kind Regards
Lucifer, your private demon.
#7
Good guide, you should move it to the guides thread ?
[Image: 8TTYBHM.png]
#8
Quote:act robot -> Slowly moving arms like a robot
act muscle -> Looks like a ♥♥♥♥♥♥♥♥♥♥ dancing
act laugh -> Points and starts laughing
act bow -> A simple bow
act cheer -> some random cheer animation
act wave -> A simple wave
act becon -> Hand signal telling someone to come to you
act agree -> thumbs up
act disagree -> the naughty finger
act forward -> Good for patrol officers, hand signal telling them to proceed
act group -> Hand signal for everyone to get together (group up)
act halt -> some random hand sign, im guessing it meens halt
act zombie -> 2 second animation, wobbles left and right like a zombie
act dance -> dance

Thought this may come in useful, as many people would also like to bind their acts.

Source:- http://steamcommunity.com/sharedfiles/fi...=156747336
A more fitting signature. 
The following 1 user Likes Jono's post:
  • ArcHammer
#9
(04-24-2014, 06:11 PM)Demonichell Wrote: Good job, but thought something like this is already made in USEFULL Doc's. By privatetoast http://www.fearlessrp.net/showthread.php?tid=11786
PrivateToast posted that a long while ago, and it is not a tutorial, it just has some of the binds you can do, which have been updated. This is a guide to how to make binds and also a collection of them.

(04-24-2014, 06:21 PM)Jono Wrote:
Quote:act robot -> Slowly moving arms like a robot
act muscle -> Looks like a ♥♥♥♥♥♥♥♥♥♥ dancing
act laugh -> Points and starts laughing
act bow -> A simple bow
act cheer -> some random cheer animation
act wave -> A simple wave
act becon -> Hand signal telling someone to come to you
act agree -> thumbs up
act disagree -> the naughty finger
act forward -> Good for patrol officers, hand signal telling them to proceed
act group -> Hand signal for everyone to get together (group up)
act halt -> some random hand sign, im guessing it meens halt
act zombie -> 2 second animation, wobbles left and right like a zombie
act dance -> dance

Thought this may come in useful, as many people would also like to bind their acts.

Source:- http://steamcommunity.com/sharedfiles/fi...=156747336

Thanks, Jono. I'll add that to the thread.

(04-24-2014, 06:12 PM)sashow1000 Wrote: Good guide, you should move it to the guides thread ?

This is where you first post guides, and if approved my an administrator, it could be moved to the Useful Docs section.

I have updated the thread with the act commands, as listed if you would bind them. They're at the bottom of the list of binds you can do.

Sincerely,
ArcHammer
[Image: LkB62ld.png]

+Rep
The following 1 user Likes ArcHammer's post:
  • Jono
#10
(04-24-2014, 02:55 PM)Floodify Wrote: Nice guide.

But.. Is it possible to bind two commands to one key?

This used to work for me:
bind H "act_dance; say hi"
The following 2 users Like Pawsative's post:
  • GRiiM, ArcHammer


Forum Jump:


Users browsing this thread: 1 Guest(s)