TFNRP / seatbelt

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

Opening seatbelt while driving will throw you out of the car #5

Closed ToasterF16 closed 2 years ago

ToasterF16 commented 2 years ago

If you open the seatbelt while driving, it will launch you out of the car just as if you had an accident.

Tested on latest artifacts with onesync legacy.

MrGriefs commented 2 years ago

Were you driving at a consistent speed? If so, what was that speed? If not, please detail the start and end velocity of the vehicle and the duration it took to reach the end velocity.

ToasterF16 commented 2 years ago

Were you driving at a consistent speed? If so, what was that speed? If not, please detail the start and end velocity of the vehicle and the duration it took to reach the end velocity.

https://gfycat.com/ImmenseFamiliarFreshwatereel

MrGriefs commented 2 years ago

That is expected behaviour when going from 80 MPH to 28 MPH within 2 seconds. If this is not to your liking, you can increase or decrease the velocity threshold by change the integer 50, representing MPH: https://github.com/TFNRP/seatbelt/blob/main/client.lua#L110

MrGriefs commented 2 years ago

If you need further help, feel free to reopen this issue.