vi/raiser
economy
economy, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~65 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24
Unlock price
$49Core Pack

Unlock 48 core prompts

Profit potential / morising
$1,400($400 to $5,000)

$50-389 script band, sized for a rising niche; top sellers clear around $11.85K/mo.

Effort vs return
advanced4-6h

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 access, esx_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), priced inside the $50-389 standalone-script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo) for a rising economy niche.

Trend Signal

↗ rising, 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.