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). [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.