mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
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.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user