[Release] Realistic Vehicle Failure

vehicle
realistic

#206

Is there a way to disable the damage hud on the right ?


#207

Where is download link?


#208

I cant find those (local damagefactor and local cascadingFailureSpeedFactor)


#209

To help with the roleplay of having to wait for the mechanic to fix your car, I added a 15 sec wait to the resource in my server but here is my question, would it be possible to make it where if you have more damage, it would take longer to repair.

Now My idea on this is a simple as taking the Max vehicle health (1000) and subtracting the current vehicle health from it. That would look something like (1000- (currentvehHealth)). That would then give you a number. So if you vehicle health is 950 when you type “/repair” at the mechanic shop then the number is 50.

Now we need to turn that into seconds. a way you can do this is by taking a percentage of that number and getting a smaller one. So lets just take 10% of that 50 that we got from the vehicle damage and now we have a 5.

The final part to this would be making that 5 into 5 sec which we can do by multiplying that 5 by 1000 to get 5000 milliseconds. You can stop that in a variable and put a wait command in for Wait(vehdamagetime) so that it would update each time someone does “repair”.

The reason I am asking for help is so someone can explain to me how to get the current vehicle health from in game so that I can perform that math above.


#210

Hey thanks and please make SundayDriver - Toggleble :frowning: with button press


#211

This mod is fantastic! Does this have the feature that I need to enable in the config to show the engine health above the minimap. Or does anyone know what other mod I need to add for this? Any and all help is greatly appreciated.enginehealth


#212

I love this idea, but what would i put the damage setting to because it takes a minute to actually turn yellow indicating damage even though the car is completely destroyed.


#213

Hey, above your minimap you have the engine health text that is yellow. Is that another addon you have or is it supposed to be with this mod?


#214

So uh… I’m assuming this doesn’t work for singleplayer…?


#215

Look for a Car Hud. There are a few on the forum here that have the engine health built in


#216

Funny you mention that, I just recently found a nice car HUD like what I pictured previously. It does not include a vehicle health mod but I coupled it with this one and it works perfect for my needs.


#217

Can this be used on a esx based server?


#218

Yes it can. Been using this for some time.


#219

Thank you. Much appreciated.


#220

thats for fuel. frfuel is the resource name