Fix: ESX-CruiseControl

This commit is contained in:
Mycroft
2022-03-02 23:42:18 +00:00
parent ba534fade4
commit b0c331b9fb
2 changed files with 3 additions and 3 deletions
@@ -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 ()
@@ -14,6 +14,6 @@ client_scripts {
'@es_extended/imports.lua',
'@es_extended/locale.lua',
'locales/*.lua',
'client/main.lua',
'config.lua',
'client/main.lua'
}