mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
Fix: ESX-CruiseControl
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user