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()).
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/business/11-shared-business-treasury.lua implements per-job society funds, a per-grade withdraw-limit map, a capped transaction ledger, andβ¦
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 limit β a grade cap enforced in NUI is bypassed by a modified client. Check
job.grade.levelagainst the limit map on the server. - Client-held balance β keep
fundsandledgersserver-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.