gta6/prompts
gangs
Vaultintermediategangs

Gang Treasury with Withdrawal Caps

ESX shared gang treasury with rank-based withdrawal limits and a server-side audit ledger of every deposit and withdrawal.

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

Description

A working ESX gang treasury with rank-based withdrawal caps and a full audit ledger. Members deposit cash into a shared fund, but each rank can only withdraw up to a configured ceiling, and every movement is logged server-side with who, how much, and when. Servers buy this because it solves the classic crew problem — one trusted member emptying the bank — and gives leaders a paper trail.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

🔒 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 lives at content/expected-outputs/gangs/25-gang-treasury-bank.lua. It implements a server-held treasury table, a per-rank withdrawal-cap clamp, an append-only audit ledger built…

🔒 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-held balance — keeping the fund in a client var lets a cheat mint money; store the balance and ledger in server tables only.
  • UI-only cap — clamping the withdrawal in the menu is bypassable; reject amount > WITHDRAW_CAP[grade] in the server handler.
  • Forged ledger — building entries from client-sent strings lets a member fake the trail; assemble each entry from xPlayer.getName() and os.time() server-side.

Corrective re-prompt: Move the treasury balance, the WITHDRAW_CAP clamp, and the ledger into the server section. In gangbank:withdraw reject the call unless amount > 0, amount <= WITHDRAW_CAP[grade], and amount <= balance, then build the ledger entry from ESX.GetPlayerFromId(source).getName() and os.time(). Send updates back with TriggerClientEvent.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); gang + rank via xPlayer.getJob().name and .grade.
  • QBCore: exports['qb-core']:GetCoreObject(); read Player.PlayerData.gang.name and .grade.level for the cap lookup.
  • QBox: exports.qbx_core:GetPlayer(src) and player.PlayerData.gang; identical treasury + ledger tables.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 FiveM script band against a corpus median seller of $11.85K/mo (signal-scraper tebex_snapshot n=100), scaled for a stable governance-utility niche.

Trend Signal

stable — inferred: Adds withdrawal-cap governance + audit ledger over a plain society fund (economy-10); steady ops layer, inferred.

Sales Angle

Position as the governance upgrade over a bare society fund — rank caps and an audit trail stop a rogue member draining the crew. Recommended Tebex price $89-119.

Difficulty & Ship Time

intermediate · ships in 2-4h.