Hey guys. my friend made me a script and everything is fine but when a vehicle gets explode in map, mta shuts down somehow with some bugs roster, here is the script
addEventHandler("onClientVehicleCollision", root,
function(collider,force, bodyPart, x, y, z, nx, ny, nz)
if ( source == getPedOccupiedVehicle(localPlayer) ) then
if (collider) then
fixVehicle(source)
end
end
end
)
PS : the script is about an undamage land, it works like when you jump your car doesn't lose health