New Version Released
Version 1.1.1 adds random tire burst and a new compatibility mode that solves some problems with other scripts.
Compatibility mode is disabled by default, but you can easily enable it in the config file.
Whenever another script sets the health of the vehicle to zero, my script will now ignore the change.
This is known to solve incompatibility with ELS and BVA. Maybe it solves other problems too.
The downside of enabling compatibility mode is that explosions can no longer be prevented.
If you turn off the engine using BVA, a single bullet to the fuel tank can explode the car.
Please note that ELS has a god mode problem (That seems to be rooted in a FiveM bug), where the car repairs itself whenever you have ELS lights on.
There is no workaround for that, since my script can’t see if a repair comes from a trainer, fix script or the ELS bug.
Compatibility Mode for ELS works best if you comment out line 391 in els-fivem/client/client.lua. (els-fivem v1.0.5 only! Don’t do it for other version!) - That line looks like a leftover from an attempt to solve the god mode problem.
Random Tire Burst
When you are driving at above 22mph there is now a risk that a tire will puncture or burst.
In the config file you can disable the feature or you can set the desired interval between tire failures.
Default value of 120 minutes means that on average a tire will burst every two hours.
This is done using statistical probability, so it’s not an exact science. You may puncture twice within half an hour, or you may not have a single puncture for 8 hours.
A huge thanks to Xatamaur for helping me reproduce the ELS problem on my own server.
Get the new version using the link in the first post.
Enjoy!