775709ddef
+ Added new Wheel-Damage script which causes wheels to fly off if the car is hit hard. + Added newer version of the police siren LVC menu. + Changed a bunch of keybinds in order to facilitate FivePD. + Readded the accidentally removed emote menu and removed NoDriveBy. + Updated the server theme alittle away from just RP. + Updated to server artifacts version to 6372
38 lines
2.1 KiB
Markdown
38 lines
2.1 KiB
Markdown

|
|
|
|
[](https://github.com/Azerothwav) [](https://forum.cfx.re/t/realistic-vehicle-failure-repair-fix/4887760/2) [](https://www.youtube.com/channel/UCH7coJ4d1gqh8BMMHacGQ5A) [](https://www.lua.org) [](https://ko-fi.com/azeroth)
|
|
|
|
# Installation
|
|
curl https://github.com/Azerothwav/Az_wheeldamage
|
|
|
|
# Informations
|
|
This script allows you to add a new element of realism to your server by adding the possibility of losing wheels.
|
|
|
|

|
|
|
|
## Requirements to trigger the loss of wheels:
|
|
- Make a jump that lasts more than 1 second (configurable in the config.lua)
|
|
- Make a collision with a certain speed (configurable in the config.lua)
|
|
|
|
|
|
The wheels are removable to be put back on the original vehicle.
|
|
|
|

|
|
|
|
## Integration for other script
|
|
A trigger is available to allow your mechanic script to repair the damaged vehicle.
|
|
|
|
TriggerEvent("az_wheel:fixvehicle")
|
|
|
|
## Limitation
|
|
The limitations of GTA make that the motorcycle wheels are not detachable, so they are immune. I also limited the wheels for boats, planes and helicopters. The off-road wheels allow to override the fact of losing a wheel via height but not via collisions.
|
|
|
|
## Known bugs:
|
|
- Vehicles can sometimes bug and go under the map (rare but it can happen)
|
|
|
|
## Framework
|
|
**QBCore / ESX / Standalone / Custom**
|
|
|
|
# Preview
|
|
https://www.youtube.com/watch?v=TYFLSRikyyA&t=1s
|