Thanks for the reference. I see what I did now. Leaving the snippet that helped me here:

 local vehicle = GetVehiclePedIsIn(LocalPed(), false)
 local tirePos = GetWorldPositionOfEntityBone(vehicle, GetEntityBoneIndexByName(vehicle, tires[a].bone))
 local spike = GetClosestObjectOfType(tirePos.x, tirePos.y, tirePos.z, 15.0, GetHashKey(spikemodel), 1, 1, 1)
 local spikePos = GetEntityCoords(spike, false)
 local distance = Vdist(tirePos.x, tirePos.y, tirePos.z, spikePos.x, spikePos.y, spikePos.z)
1 Like