gta6/prompts
gangs
Vaultbeginnergangs

Recurring Member Dues

ESX timer that automatically collects recurring membership dues from each online member into the gang fund on a server interval.

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

Description

A working ESX recurring dues collector: on a fixed server interval every active member is charged a configured fee that flows straight into the gang fund. It is the lowest-effort way to keep a crew's treasury topped up without manual deposits, and it pairs naturally with any treasury or society-fund script.

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/26-member-dues-collection.lua. It implements one server-side dues thread that charges each live member a clamped fee into the gang fund 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 timer β€” each client ticking its own dues clock makes totals diverge; keep a single CreateThread on the server.
  • Negative balances β€” charging a broke member full dues drives money negative; clamp with math.min(DUES_AMOUNT, getMoney()).
  • Billing the wrong players β€” iterating a stale or offline list charges phantom members; only iterate live ESX players and skip unemployed.

Corrective re-prompt: Move the dues timer into one server-side CreateThread that iterates ESX.GetExtendedPlayers(), skips unemployed/grade-0 members, charges math.min(DUES_AMOUNT, xPlayer.getMoney()), and adds the result to the server treasury table. Notify each charged member with TriggerClientEvent.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); iterate ESX.GetExtendedPlayers() and read xPlayer.getJob().
  • QBCore: exports['qb-core']:GetCoreObject(); loop QBCore.Functions.GetPlayers() and read Player.PlayerData.gang.
  • QBox: exports.qbx_core:GetPlayer(src) per id from GetPlayers(); identical clamp and fund table.

Profit Potential

$150–$1800/mo on Tebex (expected ~$450). [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 down for a stable low-differentiation utility.

Trend Signal

β†’ stable β€” inferred: Recurring dues are a steady gang-economy utility feeding the treasury; inferred, low differentiation.

Sales Angle

Position as the passive-funding companion to a gang treasury β€” configure it once and the fund refills itself. Recommended Tebex price $49-69.

Difficulty & Ship Time

beginner Β· ships in 1-2h.