Difference between revisions of "Binds"

From Tycoon Gaming
(→‎Examples: lots of {{!}})
m (grammar)
Line 1: Line 1:
 
= Binding, what's that? =
 
= Binding, what's that? =
<b>Binding</b> is a process of connecting a KEY (keyboard / mouse / pad) with various functions ([[Commands]]). Mostly used to ease, improve and speed up vorious processes on the Transport Tycoon servers. It can be used to bind standard chat commands such as /vote, but it can also be used in more advanced ways like to bind items and vRP functions.
+
<b>Binding</b> is a process of connecting a KEY (keyboard / mouse / pad) with various functions ([[Commands]]). Mostly used to ease, improve and speed up various processes on the Transport Tycoon servers. It can be used to bind standard chat commands such as /vote, but it can also be used in more advanced ways like to bind items and vRP functions.
  
 
= '''How to bind?''' =
 
= '''How to bind?''' =
Line 15: Line 15:
 
{{Note|<b>Example: bind keyboard k "rm_backpack;item gut_knife gut -1"</b>|info}}
 
{{Note|<b>Example: bind keyboard k "rm_backpack;item gut_knife gut -1"</b>|info}}
 
== KEY_TYPE & KEY ==
 
== KEY_TYPE & KEY ==
KEY_TYPE is an parameter describing input device, such as keyboard (KEYBOARD), mouse buttons (MOUSE_BUTTON) or mouse wheel (MOUSE_WHEEL).
+
KEY_TYPE is a parameter describing input devices, such as a keyboard (KEYBOARD), mouse buttons (MOUSE_BUTTON), or mouse wheel (MOUSE_WHEEL).
 
<br>KEY is an parameter for a key. Numbers (1,2,3...) and letters (a,b,c...) can be used by just pressing your wanted KEY, but for majority of keys their full name needs to be entered, for example: <b>,</b> = COMMA; <b>=</b> = EQUALS; <b>/</b> = SLASH; left click = MOUSE_LEFT.
 
<br>KEY is an parameter for a key. Numbers (1,2,3...) and letters (a,b,c...) can be used by just pressing your wanted KEY, but for majority of keys their full name needs to be entered, for example: <b>,</b> = COMMA; <b>=</b> = EQUALS; <b>/</b> = SLASH; left click = MOUSE_LEFT.
 
'''<br>Refer to [https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/ FiveM Docs] for full list of KEY_TYPEs & KEYs'''
 
'''<br>Refer to [https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/ FiveM Docs] for full list of KEY_TYPEs & KEYs'''
Line 21: Line 21:
  
 
== FUNCTION ==
 
== FUNCTION ==
Enter your wanted function here, keep in mind that function is an command so any ingame command can be used here, for more info refer to Bind Data Table/Functions or [[Commands|Commands Page]]. <br><b>Remember to use " " when using more than one word in a bind!</b>
+
Enter your wanted function here, keep in mind that function is a command so any ingame command can be used here, for more info refer to Bind Data Table/Functions or [[Commands|Commands Page]]. <br><b>Remember to use " " when using more than one word in a bind!</b>
  
 
== OPTION ==
 
== OPTION ==
Option is used with /item command such as "item gut_knife gut" or "item prefix_pack_3 use" as a parameter deciding what an item will do. <br> Refer to Bind Data Table for list of all options and their description or to check which item has which options.
+
Option is used with /item command such as "item gut_knife gut" or "item prefix_pack_3 use" as a parameter deciding what an item will do. <br> Refer to Bind Data Table for a list of all options and their description or to check which item has which options.
  
 
== MODIFIER ==
 
== MODIFIER ==
Mostly used with /item command, simulates press of a button. -1 is Left Arrow; 0 or none is Enter; 1 is Right Arrow.
+
Mostly used with /item command, simulates the press of a button. -1 is Left Arrow; 0 or none is Enter; 1 is Right Arrow.
  
 
= Bind Data Table =
 
= Bind Data Table =

Revision as of 22:23, 31 May 2021

Binding, what's that?

Binding is a process of connecting a KEY (keyboard / mouse / pad) with various functions (Commands). Mostly used to ease, improve and speed up various processes on the Transport Tycoon servers. It can be used to bind standard chat commands such as /vote, but it can also be used in more advanced ways like to bind items and vRP functions.

How to bind?

Press F8 - the ingame console should open - then fill in the bind template given below depending on your need and paste it in the console.

To bind something to a KEY

  • bind KEY_TYPE KEY "FUNCTION OPTION MODIFIER"

To unbind a KEY

  • unbind KEY_TYPE KEY

List of all binded KEYs

  • bind


Disclaimer: To bind multiple functions on one KEY do it all at once using ; between binds, otherwise you might get flagged for flooding and get kicked / suspended!!!
Example: bind keyboard k "rm_backpack;item gut_knife gut -1"

KEY_TYPE & KEY

KEY_TYPE is a parameter describing input devices, such as a keyboard (KEYBOARD), mouse buttons (MOUSE_BUTTON), or mouse wheel (MOUSE_WHEEL).
KEY is an parameter for a key. Numbers (1,2,3...) and letters (a,b,c...) can be used by just pressing your wanted KEY, but for majority of keys their full name needs to be entered, for example: , = COMMA; = = EQUALS; / = SLASH; left click = MOUSE_LEFT.
Refer to FiveM Docs for full list of KEY_TYPEs & KEYs

Do not open FiveM Docs page in-game!

FUNCTION

Enter your wanted function here, keep in mind that function is a command so any ingame command can be used here, for more info refer to Bind Data Table/Functions or Commands Page.
Remember to use " " when using more than one word in a bind!

OPTION

Option is used with /item command such as "item gut_knife gut" or "item prefix_pack_3 use" as a parameter deciding what an item will do.
Refer to Bind Data Table for a list of all options and their description or to check which item has which options.

MODIFIER

Mostly used with /item command, simulates the press of a button. -1 is Left Arrow; 0 or none is Enter; 1 is Right Arrow.

Bind Data Table

Disclaimer: Any chat command can be used as function and vice versa

Function Info
"item ITEM_ID OPTION MODIFIER" Use OPTION of ITEM_ID's with possible MODIFIER
For example: "item exp_token|piloting|piloting convert -1"
rm_toggleLock Toggle Vehicle Lock
rm_apark Auto-Park
rm_spawnJetski Spawn Jetski
rm_spawnBicycle Spawn Bicycle
rm_toggleengine Toggle ON/OFF Engine
rm_trunk Open Vehicle Trunk
rm_vehicle Open Vehicle Menu
rm_vehiclecards Open Vehicle Cards Menu
rm_backpack Open Backpack
rm_inventory Open Inventory
rm_point Point
driver_menu Open Driver Menu
timer_start Timer: Start
timer_resume Timer: Resume
timer_stop Timer: Stop
timer_pause Timer: Pause
dev_pos Open Position Menu (requires being in a Company)
seat -1 Shuffle to Driver Seat
vrp-openAtm Open Portable Atm
vrp-take_pills Take Pills [OUTDATED]
vrp-apply_bandages Apply Bandage
vrp-reopen Re-Open Transformer Menu
watermark Turn off Beta watermark

Examples

Expand


Perfect bind for Airline Pilots Converts all airline & player tokens into BXP after pressing F2

Expand


Convert one Gambling Token into Bonus EXP after pressing F1 on keyboard, no modifier means simulating Enter (option 1x):

Expand


Changes current job into a Mechanic after pressing . (DECIMAL) on numpad:

Expand


Re-opens transformer after pressing L on keyboard:

Expand


Guts all fishes in player's inventory after pressing = (EQUALS) on keyboard, -1 simulates Left Arrow (option all):

Expand


Opens faction menu after pressing mouse button 4:

Expand


Converts all EXP Tokens into Bonus EXP after pressing K on keyboard: