diff --git a/client/vehicle/main.lua b/client/vehicle/main.lua index 71d1d69..41bd8f4 100644 --- a/client/vehicle/main.lua +++ b/client/vehicle/main.lua @@ -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) @@ -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 @@ -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) @@ -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) @@ -187,4 +186,4 @@ if not Config.Disable.Vehicle then end currentMileage = ESX.Math.Round(currentMileage, 2) end) -end \ No newline at end of file +end diff --git a/fxmanifest.lua b/fxmanifest.lua index 01f973d..2546d65 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -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', diff --git a/web/src/assets/translate.json b/web/src/assets/translate.json index 034ae2d..430056d 100644 --- a/web/src/assets/translate.json +++ b/web/src/assets/translate.json @@ -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",