Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Horváth Gellért committed Apr 29, 2023
2 parents a6996d7 + ba1999b commit bebf169
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
11 changes: 5 additions & 6 deletions client/vehicle/main.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
local cruiseControlStatus = false
local isPassenger = false

local function SetCruiseControlState(state)
cruiseControlStatus = state
end

local PASSENGER = false

exports('CruiseControlState', function(...)
SetCruiseControlState(...)
end)
Expand Down Expand Up @@ -37,7 +36,7 @@ if not Config.Disable.Vehicle then

if not Config.Default.PassengerSpeedo and not HUD.Data.Driver then
SendNUIMessage({ type = 'VEH_HUD', value = { show = false } })
PASSENGER = true
isPassenger = true
end
Wait(1000)
end
Expand Down Expand Up @@ -116,7 +115,7 @@ if not Config.Disable.Vehicle then
values.speed = Config.Default.Kmh and math.floor(currentSpeed * 3.6) or math.floor(currentSpeed * 2.236936)
values.rpm = rpm
values.defaultIndicators.engine = engineRunning
if not PASSENGER then
if not isPassenger then
SendNUIMessage({ type = 'VEH_HUD', value = values })
end
Wait(50)
Expand Down Expand Up @@ -172,7 +171,7 @@ if not Config.Disable.Vehicle then
TriggerServerEvent('esx_hud:ExitedVehicle', currentPlate, currentMileage, Config.Default.Kmh)
end
currentMileage = 0
PASSENGER = false
isPassenger = false
end)

RegisterNetEvent('esx_hud:UpdateMileage', function(mileage)
Expand All @@ -187,4 +186,4 @@ if not Config.Disable.Vehicle then
end
currentMileage = ESX.Math.Round(currentMileage, 2)
end)
end
end
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ game 'gta5'
lua54 'yes'

description 'ESX hud'
version '1.1.2'
version '1.2.0'

shared_scripts {
'@es_extended/imports.lua',
Expand Down
3 changes: 2 additions & 1 deletion web/src/assets/translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
"speedo-background-color": "Geschwindigkeit Hintergrundsfarbe",
"speedo-outer-circle-color": "Tacho Farbe",
"speedo-nooble-color": "Tacho Nooble Farbe",
"speedo-nooble-container": "Tacho Noble container"
"speedo-nooble-container": "Tacho Noble container",
"resize-speedo": "resize speedo"
},
"Settings": {
"status": "Status HUD AN/AUS",
Expand Down

0 comments on commit bebf169

Please sign in to comment.