gta6/prompts
economy
Coreadvancedeconomy

Society Fund — Job Account In / Out

ESX society fund where boss-grade members deposit, withdraw and view a shared job account, gated by job and grade server-side.

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

Description

An ESX society fund: members at or above a boss grade can deposit personal cash into their job's shared society account, withdraw from it, and check its balance. Every action re-verifies the caller's job and grade on the server before touching the account. This is how organisations bank shared revenue in roleplay servers.

Prompt Template

You are writing a FiveM resource for esextended with esxsociety + esxaddonaccount.

🔒 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/10-society-fund-account.lua gates deposit/withdraw/balance behind a server-side boss-grade check, resolves the shared society account via the…

🔒 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

  • Trusting a client flag — checking "is boss" once on the client is bypassable. Require an isBoss(xPlayer) re-check on every server event.
  • Synchronous account accessesx_society:getSociety returns via callback; treating it as a return value yields nil. Require the callback form and a nil guard.
  • Negative society balance — an unclamped withdraw underflows the shared account. Require amount <= account.money.
  • Unfloored deposit — fractional cash desyncs the account. Require math.floor.

Integration Notes

server.lua holds the gated events and account resolution; client.lua has the notifier and /societybalance. Declare both in fxmanifest.lua. Depends on es_extended, esx_society, and esx_addonaccount. Test as a grade-3 member: /societybalance, deposit personal cash, withdraw it back; as a low grade every action is rejected.

Profit Potential

$400–$5000/mo on Tebex (expected ~$1400). [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 rising economy niche.

Trend Signal

rising — [INFERRED] banking/economy is core RP-server infrastructure, steady demand.

Sales Angle

Position as shared-treasury banking for ESX organisations — boss-grade members bank revenue safely, with every action re-verified server-side and the account never going negative. Recommended Tebex price: $89.

Difficulty & Ship Time

advanced · ships in 4-6h.