gta6/prompts
economy
Vaultbeginnereconomy

Dirty vs Clean Money — Dual Wallet

ESX dual-wallet that keeps a separate dirty (black_money) balance legit shops refuse, forcing players through a fee-taking conversion sink before it spends as clean cash.

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-25

Description

A dual-wallet economy primitive: every player holds a clean cash balance and a separate dirty (black_money) balance, and legit shops accept clean cash only. To spend dirty money a player must run it through a fee-taking conversion sink, which is what turns crime payouts into a real risk/reward decision instead of free money. Servers buy it because the sink drains the economy and gives illicit cash a meaningful cost.

Prompt Template

You are writing a FiveM resource for ESX (esextended).

🔒 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/23-dirty-clean-money-dual-wallet.lua implements a server-side convert handler that skims CONVERTFEE and a legit-shop buy handler that accepts…

🔒 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-decided wallet — if the client says which balance pays, a player buys legit goods with dirty money. Spend decisions stay server-side.
  • Client-side fee math — computing the clean amount on the client lets a cheater skip the skim. Require server math.floor.
  • Unbounded convert — a wallet:convert above the held black_money mints free clean cash. Reject amount > held.

Corrective re-prompt: Move every balance check and the fee math into the server handlers; reject any convert whose amount exceeds the player's current black_money account, and make wallet:buy read only the clean cash balance so dirty money can never pay a legit shop.

Framework Integration

  • ESX: native — getAccount("black_money"), removeAccountMoney, addMoney/removeMoney as shown.
  • QBCore: swap to Player.Functions.GetItemByName("black_money") / RemoveItem and AddMoney("cash", n).
  • QBox: same QBCore exports via exports.qbx_core; dirty cash is an ox_inventory item, so adjust the read to exports.ox_inventory:GetItemCount.

Profit Potential

$80–$1,100/mo on Tebex (expected ~$280). [INFERRED] priced in the $50-389 script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo); a saturated framework primitive sits at the low end as bundle filler.

Trend Signal

saturated — corpus: ESX ships black_money and ox_inventory tracks dirty money natively; a near-saturated framework primitive the scraper sees everywhere.

Sales Angle

Position it as the conversion-sink design rather than another wallet — a clean economy drain that makes crime cash costly to spend. Best sold inside a crime-economy bundle; standalone price ~$50-69.

Difficulty & Ship Time

beginner · ships in 2-4h.