gta6/prompts
ui
Coreintermediateui

Context / Radial Menu (NUI)

A hold-to-open NUI radial menu with configurable wedges, NUI callbacks for actions, and clean focus release.

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

Description

A radial / context menu built on NUI. The player holds a key (Left Alt) to open a ring of configurable wedges; clicking one fires an action — playing an animation locally or forwarding a named event for other resources to handle — and releasing the key closes the menu and returns control. It is the interaction backbone for emotes, vehicle actions, and job menus.

Prompt Template

You are writing a FiveM CLIENT script: a radial/context menu 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/04-radial-menu.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

  • Stuck NUI focus — every SetNuiFocus(true,true) needs a matching (false,false) on close, or the player is frozen.
  • Forgotten cb() — an NUI callback that never calls cb hangs the JS fetch. Always invoke it.
  • No key bindRegisterCommand alone gives no key; pair it with RegisterKeyMapping and a +/- command for hold-to-open.
  • Unloaded anim dictTaskPlayAnim before RequestAnimDict + a HasAnimDictLoaded wait loop plays nothing.

Integration Notes

  • Place in client/client.lua; add a client_script, ui_page, and files {} in fxmanifest.lua.
  • No framework dependency; the radial:action event lets other resources hook in.
  • Test: hold Left Alt to open the ring, click a wedge, release to close, and confirm your mouse is returned to the game.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] mid-to-upper of the $50-389 band (tebex_snapshot, median seller $11.85K/mo, n=100); a reusable radial menu is high-leverage infrastructure many resources build on.

Trend Signal

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

Sales Angle

Position as the interaction backbone for emotes, vehicle actions, and job menus that other scripts hook via the radial:action event. Recommend $89 on Tebex.

Difficulty & Ship Time

intermediate · ships in 4-6h.