gta6/prompts
economy
Vaultbeginnereconomy

Savings Account — Compounding Interest Vault

QBCore savings vault separate from checking that compounds interest each server cycle and gates withdrawals behind a cooldown, all computed server-side.

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

Description

A locked savings account that lives alongside the normal checking balance: deposits compound interest every server cycle, and withdrawals sit behind a cooldown so the account rewards holding rather than churning. It gives a server a real saving incentive and a soft sink against cash inflation, which most banking scripts — modelling only checking — never offer. That gap is the sell.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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/25-interest-savings-account-compounding.lua keeps a server-side savings table, moves money between checking and savings, enforces a withdrawal…

🔒 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-side interest — computing the gain on the client lets a player mint any balance. Compound server-side only.
  • Unbounded withdraw — a withdraw above the saved amount drains free cash. Reject amount > saved.
  • Bypassable cooldown — a client-tracked cooldown is trivially skipped. Stamp and check GetGameTimer() on the server.

Corrective re-prompt: Compute interest in the server timer with math.floor, store the savings balance and last-withdraw timestamp server-side keyed by citizenid, reject any withdraw exceeding the saved balance, and enforce the cooldown with server GetGameTimer().

Framework Integration

  • ESX: swap to ESX.GetPlayerFromId, getAccount("bank").money, addAccountMoney/removeAccountMoney.
  • QBCore: native — Player.Functions.GetMoney/AddMoney/RemoveMoney("bank", ...) as shown.
  • QBox: drop-in via exports.qbx_core:GetPlayer; persist the savings table through oxmysql for cross-restart durability.

Profit Potential

$250–$3,200/mo on Tebex (expected ~$850). [INFERRED] priced in the $50-389 script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo); a rising banking gap most scripts leave open.

Trend Signal

rising — inferred: Most banking scripts model only checking; reasoned demand for an interest-bearing savings sink that rewards holding cash.

Sales Angle

Pitch the savings tier as the banking feature everyone forgets — a holding incentive and a soft sink against cash inflation. Mid band, ~$99-149 on Tebex, upsell on a banking-UI bundle.

Difficulty & Ship Time

beginner · ships in 2-4h.