gta6/prompts
economy
Vaultintermediateeconomy

Bank Loan — Installments with Interest

QBCore loan system that disburses principal then auto-collects scheduled installments with flat interest on a server timer, flagging defaults.

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

Description

A bank loan mechanic for roleplay servers: a player applies, the server disburses principal to bank, then auto-collects fixed installments with flat interest on a timer and flags missed payments as defaults. Servers sell it because installment debt with default tracking is the financing backbone housing, vehicle and business scripts lean on.

Prompt Template

You are writing a FiveM resource for qb-core (port notes 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/14-bank-loan-installment-interest.lua disburses principal, schedules fixed installments with flat interest, and re-resolves each borrower by…

🔒 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 — letting the client compute the bill understates debt. Keep total, installment and collection on the server.
  • Double loans — no active-loan guard stacks free principal. Reject loan:apply when loans[cid] exists.
  • Stale-src default — holding a src across ticks errors or mis-defaults on disconnect. Re-resolve by GetPlayerByCitizenId each cycle.

Corrective re-prompt: "Guard loan:apply to reject when loans[cid] is already set, compute total = floor(amount*(1+INTEREST)) and installment = floor(total/TERMS) server-side, and in the collector GetPlayerByCitizenId(cid) each cycle before paying or incrementing defaults."

Framework Integration

ESX: getSharedObject(), getAccount('bank').money, addAccountMoney/removeAccountMoney, loans keyed by identifier. QBCore: as written — GetPlayer, GetPlayerByCitizenId, AddMoney/RemoveMoney, loans by citizenid. QBox: exports.qbx_core:GetPlayer(src) with the shared money functions; identifiers map 1:1.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] Priced inside the $50-389 script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo); a stable evergreen financing niche.

Trend Signal

stable — corpus: Loan scripts are an established economy category the scraper tracks (tebex_topsellers cat:economy); evergreen steady demand.

Sales Angle

Sell it as economy infrastructure — the financing layer housing and vehicle scripts plug into, not a standalone toy. Recommended Tebex price: $129.

Difficulty & Ship Time

intermediate · ships in 2-4h.