gta6/prompts
ui
Coreintermediateui

Scoreboard: Online Players + Ping

A hold-Tab scoreboard that asks the server for the live player list, server ids and ping, then renders it as a read-only NUI overlay.

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 scoreboard that opens while the player holds Tab. The client requests a snapshot from the server, which enumerates every connected player with GetPlayers() and returns their server id, name and live ping plus the slot count. The client renders it as a read-only NUI overlay (no mouse focus) and closes on key release. Player counts are always server-authoritative.

Prompt Template

You are writing a FiveM resource: a Tab-hold scoreboard via NUI. No framework…

🔒 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/06-scoreboard.lua. The…

🔒 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

  • Client-side player list — the client only sees streamed peds; build the roster server-side with GetPlayers().
  • Focus lock on a read-only HUD — use SetNuiFocus(false,false); a scoreboard needs no mouse.
  • String idsGetPlayers() returns strings; tonumber them before GetPlayerName/GetPlayerPing.
  • No hold bind — pair +/-scoreboard with RegisterKeyMapping so Tab actually opens it.

Integration Notes

  • Split into real client.lua and server.lua; list both plus the ui_page / files {} in fxmanifest.lua.
  • No framework dependency.
  • Test on a dev server with a second connected client (or a fake one): hold Tab, confirm both players appear with ids and a ping value that updates.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] lower-mid of the $50-389 band (tebex_snapshot, median seller $11.85K/mo, n=100); scoreboards are universal but simple, so volume over ticket size.

Trend Signal

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

Sales Angle

Position as a clean, server-authoritative Tab scoreboard with live ping that any framework can drop in. Recommend $59 on Tebex.

Difficulty & Ship Time

intermediate · ships in 3-5h.