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.
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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 throughoxmysqlfor 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.