How to combine FiveM keycodes to perform one single action?


#1

Hello peeps!

I’d like to combine differrent FiveM keycodes to perform one action. For instance, I’d like to enable the left turn signal on my car with the combination of “X” + “LB” on my XBOX controller. I know every button on your keyboard, or in this case XBOX controller, corresponds to a certain number in FiveM code, so I know how to bind one input to perform one action, but I don’t have sufficient knowledge in coding to combine two inputs to perform one single action in-game. Does any of you guys know how to do that?

PS: If you want to know what input or key corresponds to what number in FiveM code, here’s a list : https://wiki.fivem.net/wiki/Controls

Greetings,
Spadge.


#2

The new url is https://docs.fivem.net/game-references/controls/. Your welcome