You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduced odometer configuration in shared/config.lua, allowing for automatic or manual mileage tracking.
- Updated ClassicGauge component to display odometer values using a new OdometerReel component.
- Enhanced VehicleHud to integrate odometer display within the classic gauge framework.
- Created OdometerReel and OdometerDisplay components for rendering odometer values in a visually appealing manner.
Copy file name to clipboardExpand all lines: MANUAL.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,20 @@ Os **defaults** ficam em `shared/config.lua`. Quando `Config.AdminOnly = true`,
101
101
102
102
As três opções `ClassicSpeedo*` também podem ser trocadas in-game pelo admin (menu **Aparência**, com o tema `classic` selecionado).
103
103
104
+
#### Odômetro (milhagem)
105
+
106
+
O velocímetro exibe um odômetro (aparece na cápsula abaixo da velocidade no tema `sport`; ocultado quando o valor é 0). O HUD **só exibe** — a quilometragem vem de um provedor externo. Há suporte automático embutido:
|`Config.Odometer.interval`| ms entre leituras |`2000`|
113
+
114
+
-`'auto'` detecta o provedor rodando (prioriza `mri_mechanic`, depois `jg-vehiclemileage`) e funciona mesmo se o provedor iniciar depois do HUD.
115
+
- Os provedores retornam **km**; o HUD converte para **milhas** quando `Config.UseMPH = true`.
116
+
-`'none'` desliga a leitura automática — nesse caso qualquer script pode alimentar o odômetro manualmente pelo evento `mri_Qhud:client:setOdometer` (client) ou `TriggerClientEvent('mri_Qhud:client:setOdometer', src, distance)` (server).
0 commit comments