GithubHelp home page GithubHelp logo

fivem-seatbelt's Introduction

fivem-seatbelt

Developed last night on a live server. Hilarious AF so decided to share.

Demo: https://gyazo.com/e04eb4641f0f3674912b2b6a1c4cba93

Launches player through the windshield if a huge change in velocity happens (eg. crash).

Press K to enable / disable seatbelts.
Edit Config.Strings to change language

Note: You have to open your seatbelt to leave the vehicle.

fivem-seatbelt's People

Contributors

indianabonesurmom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fivem-seatbelt's Issues

Found a bug in your code!

For everyone having these weird "it only occurs sometimes and usually only when hitting other entities"

Line 38 looks like this: "and speedBuffer[1] > Cfg.MinSpeed "

Change it to this: "and speedBuffer[2] > Cfg.MinSpeed "

Now it works 99% of the time. (probably just some 1% GTA side effects ;) )

Thanks for the script though! Will put it to great use!

Change key for seatbelt

Hello. I have tried different things now, but nothing seems to work, how do i change the key for Seatbelt to go on/off?

Valuechanges does nothing unless lowering them. + Language-strings in cfg useless.

So, I've been playing with the script a little and decided for my use, that launching out of the windshield with the low speed, while only hitting a small cardboard box on the sidewalk, isn't gonna be useful ๐Ÿ˜„

So! I changed up the values, but going higher than

Cfg.DiffTrigger = 0.549
Cfg.MinSpeed    = 9.25

renders the script useless, pretty much. No matter the speed, what you hit and the angle of the impact.
While lowering them, just makes it easier though.

Any clarification on it?

Also, the language-strings in the config is not used in the client.lua currently ๐Ÿ˜›

hey bro

nice script I have edited to a little would you mind if I upload my version to fivem forums ??

feel free to check out my GitHub to see the changes

il give you full credit and link to your GitHub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.