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).
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 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…
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 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(); iterateESX.GetExtendedPlayers()and readxPlayer.getJob(). - QBCore:
exports['qb-core']:GetCoreObject(); loopQBCore.Functions.GetPlayers()and readPlayer.PlayerData.gang. - QBox:
exports.qbx_core:GetPlayer(src)per id fromGetPlayers(); identical clamp and fund table.
Profit Potential
$150-$1800/mo on Tebex (expected ~$450), priced inside the $50-389 FiveM script band against a top sellers clear around of $11.85K/mo (comparable Tebex), 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.
