Engine Heat - [Standalone]


Download : https://github.com/BuddyNotFound/bbv-engineheat
Preview : https://streamable.com/oyy7jp
Tebex : https://bbv.world


Engine Heat is a simple standalone script that makes your vehicle’s engine heat up if you drive too fast. When you go faster than the speed limit set in the config, the engine starts heating up. If the temperature goes higher than the limit set in the config, the engine starts wearing down slowly. If it gets too hot, the engine stops working completely until it cools down below the maximum temperature.

This resource utilizes the native temperature data from the game. This means that the vehicle’s temperature will be shown on the dashboard or HUDs that display temperature information.

You may need to adjust the configuration values to better suit your server. The current values are set for testing purposes only. The script works on 0.00ms and may spike to 0.01ms if debug mode is enabled.

Config:

Config = {}
Config.Debug = false

Config.MaxSpeed = 150.0 -- in km/h after which the engine will start to heat up
Config.MaxTemp = 120.0 -- The temperature after which the engine will start to degrade
Config.DegradeSpeed = 2.0 -- Degradation per 1.5 seconds. (Engine has 1000 health by default, 2.0 means it will remove 2.0 health per 1.5 seconds.)
Config.ShutdownTemp = 140.0 -- If this temperature is hit, the engine will shutdown.

17 Likes

Awesome script, a simple NUI for the temp would be great to.

2 Likes

Would it be possible to control this temperature?

2 Likes

control how?

You can use “SetVehicleEngineTemperature(veh, value)”

For example, I have an adjustment system that acts on handling, so if the person puts stronger parts but doesn’t improve the cooling, the car will heat up more and if they put the cooling on, it won’t heat up.

Awesome drop, just had a question - say for instance a player is using a Buggy / Mountain Climbing Vehicle, would this act as something that can overheat the engine if the player is redlining the engine too much while hill climbing or does it only work if the max speed is reached?

1 Like