function kara() local gracz = getVehicleOccupant(source) local auto = getPedOccupiedVehicle(gracz) if (gracz) and (auto) then vmaxstart = getVehicleHandling(auto, "maxVelocity") predkosc = getElementHealth(auto) / 5 setVehicleHandling(auto,"maxVelocity",predkosc) if getElementHealth(auto) > 900 then setVehicleHandling(auto,"maxVelocity",vmaxstart) end end end addEventHandler("onVehicleDamage", getRootElement(), kara)