# Syke-VehicleHud
A custom in-vehicle HUD for FiveM: a flattened arc-style RPM gauge wrapped around a digital speedometer, with gear/transmission, seatbelt, fuel, and live street name + compass heading — all tucked neatly against the corner of the minimap instead of covering the screen.
## Features
-
**Arc RPM gauge** — 48-segment tick arc that lights up green → orange → red as RPM climbs toward redline, wrapped around a large digital speed readout (custom "Digital Numbers" font).
-
**Gear + transmission indicator** — current gear (or `N` / `R`), with an automatic/manual icon.
-
**Seatbelt indicator** — icon changes color for unbuckled / buckled / harness states, with a rebindable toggle key (default `B`). Automatically hidden on bikes and motorcycles.
-
**Fuel gauge** — pump icon fills from empty to full, driven by the vehicle's live fuel level.
-
**Live street names + compass direction** — current road and nearest cross street, with an `N/S/E/W` heading badge, refreshed every 1.5s.
-
**MPH or KM/H** — switch units and the gauge's max-speed scale in one line of `config.lua`.
-
**Fully repositionable** — HUD anchor (`bottom`/`left`/`width`/`height`) is config-driven, so it can be nudged to fit any minimap layout without touching the NUI.
-
**No dependencies** — pure client-side resource. No database, no other resources required.
## Installation
1. Drop the `Syke-VehicleHud` folder into your `resources` directory.
2. Add `ensure Syke-VehicleHud` to your `server.cfg`.
3. Tweak `config.lua` to taste (units, HUD position, seatbelt key, max speed).
4. Restart the resource / server.
The NUI ships pre-built in `html/` — no `npm install` or build step required to run it. Source for the NUI (if you want to restyle it) lives in `nui/src`; see `nui/package.json` for the two-command rebuild (`npm install`, `npm run build`).
## Configuration
All buyer-facing settings live in `config.lua`:
| Setting | Description |
| ----------------------------------------------------------- | -------------------------------------------------------------- |
| `Config.Units` | `'mph'` or `'kmh'` |
| `Config.MaxSpeed` | Top value on the gauge's tick scale |
| `Config.Position` | HUD anchor (`bottom`/`left`/`width`/`height`, any CSS length) |
| `Config.Seatbelt` | Enable/disable, toggle key, which vehicle classes have no belt |
| `Config.BikeClasses` | Vehicle classes treated as bikes (hides the belt icon) |
| `Config.UpdateIntervalMs` / `Config.StreetUpdateIntervalMs` | Poll rates |