gta6/prompts
economy
Vaultintermediateeconomy

Crypto Wallet — Volatile Buy/Sell Trading

QBCore crypto wallet whose coin price random-walks live while the server settles buys/sells and tracks holdings plus realized/unrealized P/L.

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

Description

A server-authoritative crypto wallet for roleplay servers: one in-game coin whose price random-walks every cycle while players buy and sell from bank funds, with holdings and realized/unrealized profit tracked per player. Servers sell it because a live, volatile price turns a flat economy into a speculative loop players check obsessively.

Prompt Template

You are writing a FiveM resource for qb-core (port notes for ESX/QBox below).

🔒 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 at content/expected-outputs/economy/11-crypto-wallet-volatile-trading.lua ticks a clamped random-walk price on the server, settles buys/sells against bank funds, and tracks…

🔒 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

  • Client-sent price — trusting a price from the client lets a cheater arbitrage instantly. Keep price server-side and broadcast read-only.
  • Round-trip desync — handlers without AddEventHandler or firing before the wallet sync corrupt holdings. Register both sides and reply after each trade.
  • Basis drift — naive partial sells break realized/unrealized P/L. Reduce basis by the average cost times shares sold.

Corrective re-prompt: "Refactor so the client never transmits a price: the server owns price, broadcasts it read-only, and computes cost/proceeds with math.floor. On partial sells, reduce basis by (basis/qty)*soldQty so P/L stays correct."

Framework Integration

ESX: swap to ESX = exports['es_extended']:getSharedObject(), xPlayer.getAccount('bank').money, removeAccountMoney/addAccountMoney, key holdings by identifier. QBCore: as written — GetPlayer, Functions.GetMoney('bank'), RemoveMoney/AddMoney, key by citizenid. QBox: use exports.qbx_core:GetPlayer(src) and the shared QBCore money functions; identifiers map 1:1 with QBCore.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] Priced inside the $50-389 script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo); a hot crypto niche skews to the upper unit count.

Trend Signal

🔥 hot — corpus: Crypto trading is an established Tebex economy listing the scraper surfaces (tebex_topsellers cat:economy); crypto-RP demand surging pre-launch.

Sales Angle

Position as the live, speculative heartbeat of a server economy — the ticking price and P/L panel are the demo that sells it. Recommended Tebex price: $189.

Difficulty & Ship Time

intermediate · ships in 2-4h.