This script will fully overhaul the wheel damage system. Tires can now pop from collisions or jumps/falls. The entire wheel can also fall off the car making it much more difficult to drive (or fully disabling the car, configurable in the config)
Great script performance running at 0.00ms (Can be higher when rendering 3d text)
This script is standalone, meaning that it does not require any additional scripts or frameworks. It’ll work pretty much anywhere
The damage the wheels receive from collisions is fully configurable. You can even set damage multipliers per vehicle class + a special multiplier for vehicles which are using the off-road wheels/tires.
Update 1.4.0
Added an “alternativeWheelBreak” option to config.
This will allow you to make the fallen wheel look exactly like the wheels on the vehicle. Same size. same rim, same tire etc.
This does come with an disadvantage though. It’s not synced properly. The position of the broken off wheel does not sync between players. (This is using a brand new native for breaking off wheels)
That’s why I made the choice to keep it disabled by default
I am looking for a way to remove car wheels when lifted up on a car lift in a garage.
In the description you listed " Multiple public events that allow you to damage/remove/repair the wheels" - does this mean that I would be able to call one of your public events from my mechanic script to allow me to remove any wheel on a vehicle?
Yes exactly, here’s the list of the currently available events
'kq_wheeldamage:damageWheel' (veh, wheel, damage)
-- Damages a specific wheel (wheels have max 1000.0 hp)
'kq_wheeldamage:removeWheel' (veh, wheel)
-- Removes the wheel without dropping it
'kq_wheeldamage:fixWheel' (veh, wheel)
-- Fully repairs/reattaches a wheel
'kq_wheeldamage:fixCar' (veh)
-- Fully repairs all wheels of a vehicle
So for example to remove the front left wheel you would do TriggerEvent('kq_wheeldamage:removeWheel', vehicle, 0)
These events are also stored in the client/editable/editable.lua file so you can see exactly how they work, so you could adjust them to fit if need be (Only a small part of the code that the events execute is public, the events often call other functions that are encrypted)
would love to see the ability to place a car on bricks if it has no wheels, this could go even further than just damaging by driving but people could go round robbing people wheels and leaving the cars on bricks, that would be so funny