vi/raiser
gangs
gangs, GTA 6 style illustration
Vaultintermediategangs

Rank Hierarchy & Permissions

QBCore tiered gang ranks (boss/underboss/soldier) that gate stash, treasury and promotion actions through a server-authoritative permission matrix.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~86 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / mosaturated
$300($80 to $1,200)

$50-389 script band, sized for a saturated niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate3-5h

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

🔒 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/03-rank-hierarchy-permissions.lua. It implements a server-side Required action→grade matrix, an access check that re-reads the player's gang…

🔒 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 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; replace SetGang with xPlayer.setJob(name, grade) and read xPlayer.job.grade for the gate.
  • QBCore: native, PlayerData.gang.grade.level is the rank; Player.Functions.SetGang(name, grade) performs the promotion.
  • QBox: identical to QBCore through exports.qbx_core; the grade matrix and SetGang are 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.