np_gangs
Gangs that are scarce, earned and physical. There is no /gang menu and no tablet: a crew finds Lester, passes his trial together and elects an OG before it gets a turf, colours and a back room. From then on everything happens on the street with the bandana on.
- Version
- 1.0.0
- Frameworks
- ESX, qbx, qb, standalone
- Dependencies
- oxmysql, np_npchandler 1.1.0+, np_prophandler
- Database
- Tables created on start
- Inventory
- np_inventory, ox_inventory, qb-inventory or none
- Example layout
- Five South Los Santos turfs and a no-gang area
- Optional
- np_drugs, np_shops, np_admin, np_hud, np_menu, np_phone, np_character, np_identification
- Languages
- English, German
- Build
- Node 18+ to build the NUI once

Taken from the NUI in the browser at 1920×1080.
What's in it
A core with gangs, slots, turfs, shops, grip, the bandana and the stash, and fourteen modules on top of it.
Scarce slots
- A fixed number of gangs. Staff open a slot now or at a random moment; nobody is told.
- Only Lester's board shows it, and Lester moves between locations. His prompt only shows when he has something for you.
The trial
- Five jobs picked at random, a role for every founder, heat with named causes.
- The rating pays off later: a turf discount, more bandanas, the tie-break in the vote.
Vote and colours
- A secret ballot for the OG, re-elections every 14 days.
- An exclusive colour and print, a name staff approve once, a tag for graffiti.
The bandana
- An item with colour and print. On, the gang systems answer; off, a civilian.
- It can be dropped, robbed or taken off a downed player.
Protection money
- Every protected shop puts money aside hour by hour, scaled by the owner's mood.
- One of them is the stashout with the back room.
Takeovers
- Tags and leaning until the rivals pass 45 grip, then a 48-hour contest.
- Winners take 10 to 25 % of the losers' stash. No offline raiding.
Corners (np_drugs)
- The gang stamp, corners with seller, lookout and runner, a drop anyone can dig up.
- Turf prices, the outsider tax, lab permits and supply lines.
Staff editor
- Draw turfs or walk their corners, place shops, walls and corners where you stand.
- Slots, variants, the name queue and an audit of every gang.
A closer look
Founding at Lester's
Lester only talks about gangs when three or more eligible players stand in the room: playtime, no other gang, no state faction job. The whole crew sees the same screens; from the turf step on only the OG confirms.

- Buy-in: 75,000 in dirty cash, pooled on the table. A failed trial costs half and a 48-hour cooldown.
- Trial: a quiet break-in, a convoy, a delivery under time, holding a spot or tailing a car. The server checks every objective from real positions.
- Vote: a secret ballot for the OG. Ties go to the trial rating, then a coin.
- Turf, colours, stashout, trusted: "Lester decides" or a hand-picked turf, the colours, one protected shop as the back room, trusted individuals in person.
Turfs and takeovers
Grip is a turf's score: the walls carrying a gang's tag and the shops paying it, plus corner sales with np_drugs. A gang holds up to two turfs.

| Phase | What happens |
|---|---|
| Pressure | Paint over tags and lean on shops (120 s inside, two attackers in colours). Defenders get an alert and can break it up |
| Contested | Past 45 grip the turf is contested for 48 hours, on a timer that survives restarts |
| Decided | More grip at the end keeps it. Winners take 10 to 25 % of the losers' stash and keep their old turf too |
| Fair play | Two defenders in the city before anyone may lean, quiet hours, a 72-hour lockout for losers, inactivity decay |
Corners and trade (np_drugs)
Everything here exists only while np_drugs runs. np_drugs owns the product and the sale; np_gangs answers its hooks through one adapter. Neither needs the other.

- Corners with a seller, a lookout who slows heat and a runner who brings bags from a drop anyone can dig up.
- The trade board at Lester's: prices per product and turf, the outsider rule (alert, 20 % tax or forbidden) and the split, inside limits the server sets.
- Labs: slots per turf that grow with grip, permits for outsiders for a share of each batch, supply lines through protected shops.
- The gang stamp at np_drugs' batch table, with its own reputation.
How the two fit together: np_gangs + np_drugs in the docs.
The staff editor
/gangadmin, or from np_admin's staff tools. Each tab has its own np_admin permission node; without np_admin, framework admin groups, an identifier list and Discord roles.

- Map: draw a turf or walk its corners and drop them with E. Overlap is checked live.
- Shops, walls, corners: placed where you stand, with the back door and stash size. Link an existing shop to keep it as the public store.
- Gangs: the audit of every gang, moderation and the name queue.
- Setup: slots, bandana variants and prices, layout export and import.
Set it up
Compatibility
Every bridge is detected at start with one status line per sibling. np_npchandler (1.1.0 or newer) and np_prophandler are required. Every other integration is optional and can be switched off.
| Kind | Supported |
|---|---|
| Framework | es_extended (first target), qbx_core, qb-core or standalone |
| Inventory | np_inventory, ox_inventory, qb-inventory or none (a virtual bandana, no back room) |
| Staff | np_admin permission nodes; without it framework groups, Config.Admins or np_discord roles. No ACE |
| Shop robberies | np_shops, esx_holdup and qb-storerobbery events, or ReportShopRobbery |
| Dispatch | Config.Rob.dispatch and the witness event: a colour, never a name |
| NP DEV resource | What np_gangs does with it |
|---|---|
| np_drugs | Corners, the trade board, labs and permits, the gang stamp |
| np_shops | The protected shop's store with the members' price; its robberies hurt the protection |
| np_inventory | The bandana, guarded back rooms, robbing that opens the pockets |
| np_admin | Five permission nodes, a Gangs settings page, staff tools and the audit log |
| np_phone | Lester's texts to members who are offline, never with a location |
| np_identification | Strangers stay anonymous until they have seen each other's ID |
Installation
The tables and the example layout are created on start. Open the first gang slot in the editor.
- Put the resource in
resources/asnp_gangs. - Build the NUI once (Node 18+):
cd web && npm install && npm run build - Items: np_inventory registers them on start. ox_inventory and qb-inventory:
gang_bandana,spray_canandlester_notefrom the README. - Start it after its dependencies:
ensure oxmysql ensure es_extended # or qbx_core / qb-core (optional) ensure np_inventory # optional, or ox_inventory / qb-inventory ensure np_drugs # optional, may also start later ensure np_npchandler # required, 1.1.0+ ensure np_prophandler # required ensure np_gangs - Walk the trial coordinates, Lester's locations and the bandana clothing once, and replace the example turfs with your own.
- English or German with
Config.Locale.
For your own scripts
Server exports, hooks that can veto a street action, a founder or a name, and server events that never name anyone.
-- who is this, and are they in colours?
local gang = exports.np_gangs:GetGang(source) -- { id, name, tag, color, print, rank } or nil
local on = exports.np_gangs:IsBandanaOn(source)
-- who holds this corner of the map? (a gang id and a colour)
local turf = exports.np_gangs:GetTurfAt(coords)
-- no robbing in your safe zones
exports.np_gangs:registerHook('beforeAction', function(p)
if p.action == 'rob' and inSafeZone(p.source) then return false, 'Not here' end
end)
-- your shop robbery script tells the gang that protects the shop
exports.np_gangs:ReportShopRobbery(coords, robberSrc)Questions
Is there a gang menu or a tablet?
No. Decisions happen at Lester's with the crew in the room, everything else on the street with the bandana on. A member with the bandana off is a civilian.
How many gangs can there be?
As many slots as staff open (four on first start). New slots are never announced: the only way to find out is to stand in front of Lester's board.
What happens to a stolen bandana?
By default nothing: a non-member wearing it gets no gang systems. Config.Bandana.strangersCanWear gives them the street actions, never the back room or Lester.
Do I need np_drugs?
No. Without it grip is walls and shops, and the corner, the trade board and the lab rows are hidden. np_drugs may also start later; np_gangs attaches by itself.
Does it use ACE permissions?
No. Staff are np_admin permission nodes. Without np_admin: framework admin groups, Config.Admins or np_discord roles.
Is it in German?
English and German, for the Lua messages and the NUI, set with Config.Locale.
Works well with

Build once, open a slot, find Lester.
Configuration, the editor, every export, hook and event are in the docs.
