How can I bind an F8 command to a keybind? In my vMenu server, I want to bind opening a vehicle’s door to a keybind. In the F1 menu, you can toggle vehicle doors but I want to open/close them using a keybind so it’s faster on the go but I am unsure of how to even start with doing that.
If there’s a slash-command for it, you can simply use bind keyboard X Y
, where X is the desired keyboard key and Y is the command (without the slash symbol)
There is no slash command for it. I’ve tried every possible command in F8 but nothing works. I’ve binded multiple other keybinds that aren’t in the FiveM Keybind settings in game but just can’t figure this one out.
Then it’s not possible, but you can install some resource that has door control on commands, it’s just a few natives really
Also some commands in the console can be executed in chat and vice versa. If it’s a console command that can be executed in chat (such as /togglechat), you can leverage the executecommand native. HOWEVER, it’s clientsided and not reaaaally a good permanent solution depending on what you’re after…
oh right: