From 46038eb28762268a5004a0f4c6a56335c3a71e59 Mon Sep 17 00:00:00 2001 From: KlibrDM <36815757+KlibrDM@users.noreply.github.com> Date: Fri, 7 Sep 2018 14:54:11 +0300 Subject: [PATCH] No cruise control if reversing or destroyed Prevents the vehicle from entering into cruise control mode if it's reversing or if it's destroyed. --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 5e62a07c..39e5cc83 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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)