gta6/prompts
ui
Corebeginnerui

Interaction Prompt (Press E) Marker

Draws world markers at points of interest, shows a Press E help prompt in range, and fires a named event on the key press.

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
~61 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24

Description

The classic Press E interaction primitive: a list of world points each draws a marker, and when the player walks into range a "Press INPUT_CONTEXT" help prompt appears; pressing E fires a named event for that point. The loop sleeps when far away and only runs per-frame when a marker is nearby, keeping it cheap.

Prompt Template

You are writing a FiveM CLIENT script: a "Press E" interaction marker system. 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/08-interaction-prompt.lua.

🔒 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

  • Always-hot loop — set sleep = 0 only when a marker is nearby; otherwise Wait(1000).
  • Hardcoded key — use IsControlJustReleased(0, 38) (INPUT_CONTEXT), not a raw key char, so rebinds and controllers work.
  • Draw outside the frame loopDrawMarker/help-text natives must be called every frame to stay on screen.
  • Wrong distance math — use #(coordsA - coordsB) for the magnitude.

Integration Notes

  • Place in client/client.lua; declare a single client_script in fxmanifest.lua (no ui_page required).
  • No framework dependency; wire each point's event to your shop / job logic.
  • Test on a dev server: teleport to a point's coords, confirm the marker draws, the prompt shows in range, and pressing E triggers the event.

Profit Potential

$100–$1200/mo on Tebex (expected ~$300). [INFERRED] low-to-mid of the $50-389 band (tebex_snapshot, median seller $11.85K/mo, n=100); a Press-E interaction primitive is foundational but heavily cloned (ox_target et al.), capping ticket size.

Trend Signal

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

Sales Angle

Position as the foundational Press-E marker primitive every shop and job wires into. Recommend $59 on Tebex.

Difficulty & Ship Time

beginner · ships in 2-4h.