From b0c331b9fb13e059806569d89d03681411f4520b Mon Sep 17 00:00:00 2001 From: Mycroft Date: Wed, 2 Mar 2022 23:42:18 +0000 Subject: [PATCH] Fix: ESX-CruiseControl --- [esx_addons]/esx_cruisecontrol/client/main.lua | 4 ++-- [esx_addons]/esx_cruisecontrol/fxmanifest.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[esx_addons]/esx_cruisecontrol/client/main.lua b/[esx_addons]/esx_cruisecontrol/client/main.lua index 52e65dc9..18b2b605 100644 --- a/[esx_addons]/esx_cruisecontrol/client/main.lua +++ b/[esx_addons]/esx_cruisecontrol/client/main.lua @@ -6,7 +6,7 @@ RegisterCommand("cruise", function(src) end end) -RegisterKeyMapping("cruise", "Enable Cruise Control", Config.ToggleKey) +RegisterKeyMapping("cruise", "Enable Cruise Control", "keyboard",Config.ToggleKey) function TriggerCruiseControl() if CruisedSpeed == 0 and IsDriving() then @@ -65,7 +65,7 @@ function IsInVehicle () end function IsDriver () - return GetPedInVehicleSeat(GetVehiclePedIsIn(PlayerPedId(), false), -1) == PlayerPedId() + return GetPedInVehicleSeat(GetVehiclePedIsIn(PlayerPedId(), false), -1) end function GetVehicleSpeed () diff --git a/[esx_addons]/esx_cruisecontrol/fxmanifest.lua b/[esx_addons]/esx_cruisecontrol/fxmanifest.lua index 6ac911a4..e3f46819 100644 --- a/[esx_addons]/esx_cruisecontrol/fxmanifest.lua +++ b/[esx_addons]/esx_cruisecontrol/fxmanifest.lua @@ -14,6 +14,6 @@ client_scripts { '@es_extended/imports.lua', '@es_extended/locale.lua', 'locales/*.lua', - 'client/main.lua', 'config.lua', + 'client/main.lua' }