Description
A working ESX gang power board: /gangpower opens a NUI leaderboard that ranks every gang server-wide by a weighted score of turf held, reputation and live member count. The score is computed entirely on the server from stats other gang resources push in, turning isolated turf and rep systems into a single competitive ladder.
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/05-gang-power-leaderboard.lua. It implements a server-side Stats table, a trusted-only setStat event guarded by GetInvokingResource(), a liveβ¦
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-submitted score β a client sends its own power/member count to top the board. Compute everything server-side from trusted stats.
- Spoofable stat setter β
setStataccepts client calls; guard it withGetInvokingResource()so only server resources can update turf/rep. - One-sided net event β request/response on a single side leaves the board empty; both sides need
RegisterNetEvent+AddEventHandler.
Corrective re-prompt: "Reject gangpower:setStat when GetInvokingResource() is nil so only server resources can write stats, and never read a member count or score from the client. Inside gangpower:request, count live members by looping GetPlayers() and compute the weighted power on the server before sorting and ranking."
Framework Integration
- ESX: native β count members via
GetPlayers()+ESX.GetPlayerFromIdmatchingjob.name; other ESX gang resources callgangpower:setStat. - QBCore: read
PlayerData.gang.namefor the member count and useQBCore.Functions.GetPlayers(); wire turf/rep modules to the same setter. - QBox: identical to QBCore via
exports.qbx_core; persistStatsto your DB so the ranking survives restarts.
Profit Potential
$250β$3500/mo on Tebex (expected ~$900). [INFERRED] $50-389 script band Γ est units/mo for a rising niche, against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo).
Trend Signal
β rising β inferred: Competitive server-wide ranking drives gang engagement and rivalry; no direct corpus anchor, analyst read.
Sales Angle
Sell it as the rivalry layer that gives turf and rep a scoreboard worth fighting over. Price it $79-129 and position it as the module that "makes the whole gang pack feel alive" β it upsells the turf and rep modules that feed it.
Difficulty & Ship Time
intermediate Β· ships in 4-6h.