Pk_vehiclecrash - Vehicle crash engine damage

Pawan.Krd Scripts

Vehicle crash engine damage Script

I made this script. A funny thing happened yesterday - someone leaked it on Tebex and was selling it for €35 :joy:. So I thought, why not share the latest version of it for free on GitHub? Enjoy! :tada:

Don’t forget to give the repo a star :star:
Download

Brief Overview

This GitHub repository contains the Vehicle Crash Engine Script for FiveM. The script enhances the realism of vehicle crashes in-game by disabling the vehicle’s engine upon significant damage. It actively monitors the health of vehicles and applies engine damage effects, creating a more immersive gameplay experience.

Configuration File Documentation

The script is customizable through its configuration file config.lua. Key configuration options include:

  • DisplayTimer: Boolean value to toggle the display of a countdown timer when the engine is damaged.
  • VehicleDamageTimings: An array of objects, each defining a damage range and corresponding engine off time. Each object has two properties:
    • DamageRange: Object specifying the minimum (Min) and maximum (Max) damage values.
    • TimeRange: Object indicating the minimum (Min) and maximum (Max) time in seconds for which the engine will remain off.

The script uses these settings to dynamically calculate the engine off time based on the extent of vehicle damage.

13 Likes

bro now way thank u

1 Like

You did more than enough this is really kind from you for sharing it for free. Report those people anyway selling it and leaking them to abuse@fivem.net. If you find them or know who they are, of course.

1 Like


get these error with ESX

suddenly Im getting theses running qbcore

this native error will happen when the vehicle does not exist anymore, or it may be client side vehice, i update the script at github, you can try to see if its fixed

1 Like