function disableBlowVehicle( source )
local health = getElementHealth( source)
if(health<=350) then
setElementHealth(source, 300)
setVehicleDamageProof(source, true)
setVehicleEngineState(source, false)
end
end
addEventHandler("onVehicleDamage", getRootElement(), disableBlowVehicle)
Try that I tested it and it worked