gta6/prompts
phone
Vaultadvancedphone

Stock-Market Trading App

ESX/QBCore stock-market phone app with tradeable companies on a server-driven live-sim price walk, portfolio, dividends, and broadcast market-event news — all state server-authoritative.

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

Description

A stock-market trading app on the phone: a handful of tradeable companies whose prices walk on a server-driven live sim, a portfolio, dividends paid per share, and broadcast market-event news that nudges prices. It is a deeper market simulation than a crypto wallet, so economy-focused servers buy it for the long-horizon investing loop.

Prompt Template

You are writing a FiveM resource for [esx|qbcore]. Resolve the framework through…

🔒 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

See content/expected-outputs/phone/17-stock-trading-app.lua — a server-side…

🔒 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 & Corrective Prompt

  • Prices walked on the client → buy low / sell high against a spoofed quote.
  • Sell qty not clamped to holdings → phantom shares sold for free cash.
  • Dividends triggered from the client → on-demand payout farming.

Corrective re-prompt: Walk prices only inside a server CreateThread/Wait loop and fill trades against that server value. Clamp sells with qty = math.min(math.floor(tonumber(qty) or 0), held), and pay dividends solely from a server-side scheduled thread, never a client event.

Framework Integration

  • ESX: ESX.GetPlayerFromId(src), getMoney()/removeMoney()/addMoney(), ESX.GetPlayerFromIdentifier(id) for the dividend pass.
  • QBCore: QBCore.Functions.GetPlayer(src), Player.Functions.RemoveMoney('bank', cost) / AddMoney('bank', amt), resolve dividend recipients via QBCore.Functions.GetPlayerByCitizenId.
  • QBox: not targeted in this spec — adapt the QBCore path via exports.qbx_core:GetPlayer if you backport it.

Profit Potential

$180–$2000/mo on Tebex (expected ~$600). [INFERRED] Priced inside the $50-389 script band against the corpus median seller of $11.85K/mo (signal-scraper tebex_snapshot n=100) for a stable economy-sim niche.

Trend Signal

stable — inferred: Economy-server niche distinct from crypto; deeper market sim, smaller audience.

Sales Angle

The deeper market sim for economy-focused servers; dividends + news events are the differentiator versus a crypto wallet. Recommended Tebex price $159.

Difficulty & Ship Time

advanced · ships in 2-3 days.