Merge pull request #7 from KlibrDM/patch-1

No cruise control if reversing or destroyed
This commit is contained in:
Samuel
2019-02-03 14:09:27 +01:00
committed by GitHub
+1 -1
View File
@@ -36,7 +36,7 @@ end)
function TriggerCruiseControl ()
if CruisedSpeed == 0 and IsDriving() then
if GetVehiculeSpeed() > 0 then
if GetVehiculeSpeed() > 0 and GetVehicleCurrentGear(GetVehicle()) > 0 then
CruisedSpeed = GetVehiculeSpeed()
CruisedSpeedKm = TransformToKm(CruisedSpeed)