Description
A working QBCore rank/permission layer: ranks map to grade levels (soldier 1, underboss 3, boss 4) and a server-side matrix gates /gangstash, /gangtreasury and /gangpromote. It is a commodity on its own, but it is the gate that makes the paid treasury and turf modules safe to ship.
Prompt Template
You are writing a FiveM resource for QBCore (qb-core, exports['qb-core']:GetCoreObject()).
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/03-rank-hierarchy-permissions.lua. It implements a server-side Required action→grade matrix, an access check that re-reads the player's gang…
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 gate, the grade is checked before showing the action only; a packet bypasses it. Re-check the grade in the server handler.
- No promote guard, without a boss-grade requirement anyone self-promotes; require the top grade server-side and clamp the target grade.
- One-sided net event, grant/deny on a single side breaks feedback; both sides need
RegisterNetEvent+AddEventHandler.
Corrective re-prompt: "Re-read PlayerData.gang.grade.level on the server inside every access handler and compare it to the Required table there, never trust a grade sent from the client. Gate gangranks:promote behind the boss grade, resolve the target by citizenid, and clamp the new grade to 0-4 before SetGang."
Framework Integration
- ESX: map ranks onto
job.grade; replaceSetGangwithxPlayer.setJob(name, grade)and readxPlayer.job.gradefor the gate. - QBCore: native,
PlayerData.gang.grade.levelis the rank;Player.Functions.SetGang(name, grade)performs the promotion. - QBox: identical to QBCore through
exports.qbx_core; the grade matrix andSetGangare unchanged.
Profit Potential
$80-$1200/mo on Tebex (expected ~$300), $50-389 script band × est units/mo for a saturated niche, against a corpus of comparable Tebex sellers (median ~$11.85K/mo).
Trend Signal
↘ saturated, inferred: Rank/permission grades ship with qb-gangs free; commodity layer. Native to the QB gang grade model.
Sales Angle
Frame it as the access-control backbone that makes a gang's treasury and turf modules tamper-safe. It belongs inside a $59-99 gang pack where the value is enforcement, not as a $20 standalone competing with free grade systems.
Difficulty & Ship Time
intermediate · ships in 3-5h.
