gta6/prompts
business
Vaultbeginnerbusiness

Shared Business Treasury

QBCore society treasury with role-gated deposit/withdraw limits and a server-kept transaction ledger.

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 shared business treasury where a society account is funded by member deposits and protected by per-grade withdraw limits, with every movement written to a server-kept ledger. Servers buy it because shared funds are a trust-sensitive primitive that needs role gating and an audit trail, not a free-for-all account anyone can empty.

Prompt Template

You are writing a FiveM resource for QBCore (exports['qb-core']:GetCoreObject()).

πŸ”’ 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/business/11-shared-business-treasury.lua implements per-job society funds, a per-grade withdraw-limit map, a capped transaction ledger, and…

πŸ”’ 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 limit β€” a grade cap enforced in NUI is bypassed by a modified client. Check job.grade.level against the limit map on the server.
  • Client-held balance β€” keep funds and ledgers server-side; the client only renders them.
  • Negative balance race β€” re-check amount > funds[job] inside the server withdraw handler before subtracting.

Corrective re-prompt: Move the withdrawLimit map and the funds/ledgers tables into the server section, read the withdrawing player's PlayerData.job.grade.level server-side, and reject the withdraw when it exceeds either the grade limit or the live fund balance before mutating anything.

Framework Integration

ESX: back the fund with esx_addonaccount:getSharedAccount('society_'..job) and gate by xPlayer.job.grade; the ledger stays a server table. QBCore: native β€” Player.PlayerData.job.grade.level, RemoveMoney/AddMoney('bank', n); optionally persist funds via qb-management. QBox: identical to QBCore via exports.qbx_core:GetPlayer(src); qbx_management can hold the canonical society balance.

Profit Potential

$130–$1700/mo on Tebex (expected ~$450). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a stable society-banking niche.

Trend Signal

β†’ stable β€” corpus: Society/shared-account banking is a standard framework primitive in scraped management bundles.

Sales Angle

Position as the trust layer for shared money: role-gated withdraws and a clean ledger gangs, jobs and businesses can all run. Recommended Tebex price: $69.

Difficulty & Ship Time

beginner Β· ships in 2-4h.