vi/raiser
ui
ui, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~56 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24
Unlock price
$49Core Pack

Unlock 48 core prompts

Profit potential / mostable
$500($150 to $2,000)

$50-389 script band, sized for a stable niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate3-5h

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 mistake, GetEntitySpeed 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), mid of the $50-389 band (comparable-seller corpus, median ~$11.85K/mo); speedometers are a perennial server want and cross-fuel compatibility widens demand.

Trend Signal

stable, 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.