All products

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.

v1.0.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler 1.1.0+ · np_prophandler
Price TBAStore link follows at release
InstallationDocumentation
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
Lester's board: the crew in the room with each founder's eligibility, the gang slots (open, taken with a strength rating, reserved, sealed) and the buy-in pooled on the table in dirty cash
Lester's board: the crew in the room with each founder's eligibility, the gang slots (open, taken with a strength rating, reserved, sealed) and the buy-in pooled on the table in dirty cash

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.

The trial: a quiet break-in with the van, the camera feed, the box, the crates and the way back, heat 34 with its causes
  1. Buy-in: 75,000 in dirty cash, pooled on the table. A failed trial costs half and a 48-hour cooldown.
  2. 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.
  3. Vote: a secret ballot for the OG. Ties go to the trial rating, then a coin.
  4. Turf, colours, stashout, trusted: "Lester decides" or a hand-picked turf, the colours, one protected shop as the back room, trusted individuals in person.

On the street

Hold G with the bandana on. Rows a player cannot use stay visible with the reason. Every action passes the bandana, rank, distance, cooldown and a beforeAction hook on the server.

A protected shop: $1,120 waiting, the owner's mood, collect, the members' price and the back room
  • Spray your tag on a wall or paint over a rival's. Tags count towards grip.
  • Rob at gunpoint or take a bandana off a downed player. Witnesses hear a colour, never a name.
  • Collect protection: 80 % into the back room as dirty cash, 20 % to the collector.
  • Back room at the stashout's door, for members in colours. Only trusted individuals are told where it is.
  • Hand over a bandana to a recruit (trusted only). Bandanas come from Lester's crate, which caps gang size.

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.

A contested turf: attackers at 52 grip against the defenders, 31 hours left in the window
PhaseWhat happens
PressurePaint over tags and lean on shops (120 s inside, two attackers in colours). Defenders get an alert and can break it up
ContestedPast 45 grip the turf is contested for 48 hours, on a timer that survives restarts
DecidedMore grip at the end keeps it. Winners take 10 to 25 % of the losers' stash and keep their old turf too
Fair playTwo 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.

Working the corner: a regular asks for two bags of weed, the seller, lookout and runner, the corner heat and the split
  • 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.

The editor map: turfs as polygons with their shops, spray walls and corners, and the turf card
  • 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.

KindSupported
Frameworkes_extended (first target), qbx_core, qb-core or standalone
Inventorynp_inventory, ox_inventory, qb-inventory or none (a virtual bandana, no back room)
Staffnp_admin permission nodes; without it framework groups, Config.Admins or np_discord roles. No ACE
Shop robberiesnp_shops, esx_holdup and qb-storerobbery events, or ReportShopRobbery
DispatchConfig.Rob.dispatch and the witness event: a colour, never a name
NP DEV resourceWhat np_gangs does with it
np_drugsCorners, the trade board, labs and permits, the gang stamp
np_shopsThe protected shop's store with the members' price; its robberies hurt the protection
np_inventoryThe bandana, guarded back rooms, robbing that opens the pockets
np_adminFive permission nodes, a Gangs settings page, staff tools and the audit log
np_phoneLester's texts to members who are offline, never with a location
np_identificationStrangers 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.

  1. Put the resource in resources/ as np_gangs.
  2. Build the NUI once (Node 18+):
    cd web && npm install && npm run build
  3. Items: np_inventory registers them on start. ox_inventory and qb-inventory: gang_bandana, spray_can and lester_note from the README.
  4. 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
  5. Walk the trial coordinates, Lester's locations and the bandana clothing once, and replace the example turfs with your own.
  6. 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.

np_gangs docs