TFNRP / seatbelt

Seatbelt script for FiveM, with LEO detection
https://forum.cfx.re/t/4779995
MIT License
10 stars 6 forks source link

Seatbelt prompt doesn't update to default keybind #13

Closed saddleupandride closed 1 year ago

saddleupandride commented 1 year ago

Changed the default keybind to B in config, B puts on and removes the seatbelt, but the prompt still says to press K to put it on https://media.discordapp.net/attachments/953230547138777098/1132074129693093968/image.png?width=1152&height=81 https://media.discordapp.net/attachments/953230547138777098/1132074143936954510/image.png?width=1033&height=662 (github isn't cooperating with images, apologies for the random links)

MrGriefs commented 1 year ago

unfortunately, this is a limitation of this script. the control shown in the help text is ephemeral at best and cannot be used to show the actual binded key at runtime. this is also a limitation of FiveM's custom key registry.

the best solution is to change the text INPUT_REPLAY_SHOWHOTKEY to the corresponding default key you've set in config.lua, in this case it would be INPUT_REPLAY_STARTPOINT to display the B key.

you can find the "full" control list here: https://docs.fivem.net/docs/game-references/controls closing this issue as no support