Have been trying to look thru the natives and have had 0 luck finding anything that refers to removing a entity you found by boneindex. Say I find the wheel of a vehicle by GetWorldPositionOfEntityBone(vehicle, GetEntityBoneIndexByname(vehicle, ‘wheel_lf’). That will allow me to set marker around the entity since its getting the position. But is there anyway to get just the entity and not the pos to use DeleteEntity so it would just delete the right wheel.
First attempt didn’t work… but will keep playing around with it. If a vehicle can have the fender taken off from damage … should be able to remove it in general i would think.
Again thanks for the idea and ill keep playing with it.
You can detach any vehicle part including the wheels, and it’s not using the setwheelxoffset method. The wheels actually get detached and lay on the road. I’ve been wondering how it was achieved for awhile now and so the answer is that there’s no native in FiveM for achieving this, but the method used in Zolika’s trainer was by disabling the bones. So to achieve this, you’d need to build a custom version of FiveM, otherwise it’s possible to do in SinglePlayer as demonstrated below.
You can use SetVehicleWheelTireColliderSize(vehicle, x, -5.0) where x = position of wheel, between 0 and 3 in addition with GetOffsetFromEntityInWorldCoords if you want to remove wheels from a spot as a mechanic for example
0 = Front Left
1 = Front right
2 = Rear Left
3 = Rear Right