Description
A top-screen compass strip drawn with native DrawText / DrawRect: it shows
the cardinal direction (N/NE/E…), the heading in degrees and the current street
name. It is a staple of every roleplay HUD pack — low differentiation, but reliable
baseline demand as a clean standalone or pack component.
Prompt Template
You are writing a FiveM CLIENT compass HUD. No framework money/state is involved,…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Expected Output
The reference Lua lives at content/expected-outputs/ui/14-compass-heading-hud.lua.
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Known Failure Modes & Corrective Prompt
- Raw heading as bearing —
GetEntityHeadingis counter-clockwise; N/S and E/W flip without the(360 - heading) % 360conversion. - Draw outside the loop —
DrawText/DrawRectmust run every frame. - Off-by-one cardinal — the
+22.5offset must wrap with% 360before the/45bucket so 350° rounds to N, not NW.
Corrective re-prompt: "The compass shows E when I face west — convert the heading with compass = (360.0 - GetEntityHeading(ped)) % 360.0 before bucketing, and confirm the +22.5/%360 offset so 350 degrees reads N."
Framework Integration
- ESX: no money/state needed; drop into an existing ESX HUD resource as an
extra
client_scriptand toggle it off the same HUD settings event. - QBCore: pair with
LocalPlayer.stateHUD-visibility flags so it hides when the QBCore HUD is toggled. - QBox: identical client-only code; wire visibility to your qbx HUD toggle.
Profit Potential
$120–$1700/mo on Tebex (expected ~$450). [INFERRED] priced in the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo); low differentiation pins it to the band floor.
Trend Signal
→ stable — inferred: compass strips ship in nearly every roleplay HUD pack; steady baseline demand, low differentiation.
Sales Angle
Position as a clean, standalone compass that drops into any HUD pack with zero dependencies. Recommended Tebex price $59.
Difficulty & Ship Time
beginner · ships in 2-4h.