gta6/prompts
ui
Coreintermediateui

Vehicle HUD: Speedometer, Fuel, Gear

A driver-only vehicle HUD showing speed in mph, fuel level, current gear and RPM, pushed to an NUI dashboard.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~56 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24

Description

A client-side vehicle dashboard HUD. While the player is driving (not just sitting in) a vehicle, it pushes speed (converted from m/s to mph), fuel level, the current gear (with reverse shown as "R"), and RPM to an NUI dashboard. It sleeps when out of a vehicle to stay cheap, and reads fuel from LegacyFuel with a native fallback so it works across fuel resources.

Prompt Template

You are writing a FiveM CLIENT script: a vehicle HUD rendered via NUI. No…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/ui/03-vehicle-hud.lua. It…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes

  • All-seats HUD — gate on GetPedInVehicleSeat(veh, -1) == ped so only the driver sees the dash.
  • Speed unit mistakeGetEntitySpeed is m/s; multiply by 2.236936 (mph) or 3.6 (km/h), never use it raw.
  • Fuel hard dependency — wrap the LegacyFuel export in pcall with a GetVehicleFuelLevel fallback.
  • Per-frame loop out of car — sleep at Wait(500) when not driving instead of polling every frame.

Integration Notes

  • Place in client/client.lua; declare a client_script plus ui_page and files {} in fxmanifest.lua.
  • Optional soft dependency on LegacyFuel; otherwise the native fuel level is used.
  • Test on a dev server: spawn a car, drive it, watch speed/fuel/gear update; sit in the passenger seat to confirm the HUD stays hidden.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] mid of the $50-389 band (signal-scraper corpus, median seller $11.85K/mo, n=100); speedometers are a perennial server want and cross-fuel compatibility widens demand.

Trend Signal

stable — [INFERRED] HUD/UI utilities are always-needed but commoditized.

Sales Angle

Sell as a cross-fuel speedometer and dashboard that drops onto any framework with a LegacyFuel-or-native fallback. Recommend $79 on Tebex.

Difficulty & Ship Time

intermediate · ships in 3-5h.