Hello,
How can I add the keybinds of my scripts in the gta settings → FiveM
Example: i have the keybind X for my Seatbelt in the Script. How can I add it to the settings, that Users can change this keybind?
Thanks for helping, mates
Hello,
How can I add the keybinds of my scripts in the gta settings → FiveM
Example: i have the keybind X for my Seatbelt in the Script. How can I add it to the settings, that Users can change this keybind?
Thanks for helping, mates
https://docs.fivem.net/natives/?_0xD7664FD1
It binds a client-side command to that specific key.
Key Bindings are saved per resource / per client. This means that if you set a default key, use it on your server, and then change the default key in code, YOUR CLIENT will still have the old key saved.
Thank you!