Skip to content

Configuration ​

Everything is in shared/config/. The numbered files are the core, the named files belong to one module each and load after the numbered ones. All of them are shared (client and server), so nothing secret goes in there. Numbers that appear in the screenshots (prices, hours, cooldowns) are defaults, not rules.

With np_admin running, the main tunables are also editable in game on its Resource settings page under Gangs (see Editable in np_admin).

File What
00_core.lua Locale, bridges, staff without np_admin (Config.Admins, AdminGroups, AdminDiscordRoles), which np_* siblings to use, dirty cash, crew size, trusted slots, gang slots, RPC rate limit
10_bandana.lua The item, strangersCanWear (off), toggle time, exclusivity ('color' or 'pair'), colours, prints and their prices, wear styles
11_turf.lua maxPerGang (2), shops a turf needs (2), grip weights, shop defaults and kinds, police attention decay
12_stash.lua Door radius, announce (off), switch fee and cooldown, what Lester holds
13_lester.lua His ped, locations, rotation, the room, how many must be present
14_takeover.lua Loot 10–25 %, keepOldTurf (on), threshold 45, window 48 h, lockout 72 h, defenders online, quiet hours, lean, inactivity decay
15_drugs.lua Everything np_gangs decides about np_drugs: corners, prices, demand, split and limits, outsiders, heat, grip, production
16_street.lua The street menu key (G), its rows and their hook names, the turf toast
admin.lua /gangadmin, the radial entry, name approval, layout folder, walking keys
lester.lua Buy-in, what failing keeps, cooldowns, eligibility, the note
trial.lua The five jobs (objectives, vehicles, coordinates), heat causes, rating, patrol
election.lua Ballot length, re-elections, the absent OG
territory.lua Reroll fee, discount by trial rating, neighbour distance
colours.lua The placeholder name, the first crate by rating, style icons
stashout.lua Fee account, decided at Lester's, owner moods
trusted.lua Offer time, trusted slots by standing, Lester's crate
graffiti.lua The can, reach, times, wall cooldown, how tags are drawn
rob.lua Radius, cone, time, weapon, mode, cooldowns, witnesses, your dispatch
protection.lua Split 80 / 20, accrual, mood, robberies, the members' store and its items, keys
takeover.lua Lean radius, break radius, cooldown, claimOpen, result time, dissolving with a crate
corner.lua Shift mechanics, customers, lookout spots, the drop and searchspot, heat, police jobs, persistence
trade.lua Price steps, walk-away line, demand per turf, corner bounds, permits, supply lines

Core (00_core.lua) ​

Option Default Description
Config.Debug false Debug output
Config.Locale 'en' 'en' or 'de', for server texts and the NUI
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone'. Auto prefers esx → qbx → qb → standalone
Config.Inventory 'auto' 'np' (np_inventory), 'ox', 'qb', 'none'
Config.Admins {} Without np_admin: identifiers that are staff ('license:…', 'discord:…', 'fivem:…'). See Permissions
Config.AdminGroups { esx = { 'admin', 'superadmin' }, qb = { 'admin', 'god' } } Without np_admin: framework groups (ESX xPlayer.getGroup()) and permissions (qb / qbx HasPermission) that are staff
Config.AdminDiscordRoles {} Without np_admin: np_discord role ids or names that are staff
Config.AdminDiscordCacheSeconds 60 How long a Discord answer is kept
Config.Integrations.<name> 'auto' Per optional sibling (np_npchandler and np_prophandler are required, no toggle; np_hud, np_inventory, np_menu, np_phone, np_character, np_identification, np_drugs, np_discord, np_shops, np_minigames): 'auto' = used while started, false = always the built-in fallback
Config.DirtyMoney { mode = 'auto', item = 'black_money', account = 'black_money' } See Items → Dirty cash
Config.Gang.nameLength / tagLength { 3, 32 } / { 2, 4 } Gang name; graffiti tag (letters and digits)
Config.Gang.crew { min = 3, max = 6 } Founders in the room when the trial starts
Config.Gang.trusted { base = 2, max = 6 } Trusted slots; standing raises it (Trusted)
Config.Gang.homelessDays 5 A gang without a turf keeps colours and bandanas this long, then the slot returns
Config.Gang.ledgerKeepDays 60 Ledger entries older than this are pruned
Config.Ranks member, trusted, og; trusted permissions switchStash, buyBandanas The OG holds every permission; each trusted permission can be turned off per person
Config.Slots { max = 4, reserveMinutes = 180, silentOpen = { minHours = 6, maxHours = 72 } } Slots created on first start; a reserved slot returns after this without a result; the default "open inside a window"
Config.Rpc { perSecond = 8, burst = 16 } Token bucket per player for every RPC

Bandana (10_bandana.lua) ​

Option Default Description
item 'gang_bandana' The item name
strangersCanWear false true: whoever wears the colours gets the street actions (never the back room or Lester's screens)
toggleMs 2500 Putting it on / taking it off
blockInCombat / combatCooldownMs true / 8000 Not while shooting, in melee, aiming or shortly after taking damage
verifySeconds 5 How often the server checks that a worn bandana is still in the pockets
exclusive 'color' 'color': a colour belongs to one gang, prints are free. 'pair': only colour + print is exclusive
colors the nine Nimbus tints { id, label, texture }: red orange rust pink olive lilac green blue aqua. texture is the texture index of the wear component
prints plain, paisley (free), stripes, checks (2,500) { id, label, price }
defaultStyle / styles face / face, neck Each style sets one ped component: face = component 1, drawable 51; neck = component 7, drawable 112 / 83 (male / female). Placeholders for the stock peds

Variants (which colours and prints exist, and their price) can also be switched in the editor.

Turf, grip, shops, police (11_turf.lua) ​

lua
Config.Turf = { maxPerGang = 2, minShops = 2, maxPoints = 48, defaultPickPrice = 75000, trackMs = 750, seedExample = true }
Config.Grip = { walls = 50, shops = 50, ledgerMin = 1 }
Config.Shop = { defaults = { stashSlots = 40, stashWeight = 150000, weekly = 1400, mood = 70 }, interactRadius = 2.5,
  kinds = { laundry = 'shirt', barber = 'scissors', liquor = 'wine-bottle', pawn = 'gem', store = 'store', garage = 'wrench' } }
Config.Police = { attention = { min = 0, max = 100, decayPerHour = 2 } }
Option Description
Turf.maxPerGang Turfs one gang can hold (0 = no cap)
Turf.minShops A turf needs this many shops before it can be released, so the stash can always move
Turf.defaultPickPrice "I want that one" at Lester's; set per turf in the editor
Turf.seedExample Insert the example layout when no turf exists yet
Grip.walls / Grip.shops Points for holding every wall / every shop paying the gang. np_drugs sales add to it (Turfs → Grip)
Shop.defaults Stash slots, stash weight (g), weekly protection and starting mood of a new shop
Shop.kinds Icon per kind of small shop
Police.attention Per turf, 0..100, decays per hour. Tags, robberies, leaning and seizures raise it

Stash (12_stash.lua, stashout.lua) ​

Option Default Description
doorRadius 2.5 Metres from the back door, checked on the server and kept while it is open
announce false false: the stash is registered without coordinates, so nobody but the gang gets a prompt at the door. true: the inventory shows its own prompt to everyone near (the open hook still refuses non-members)
switch { cooldownHours = 12, fee = 5000, account = 'dirty', atLester = true } Switching the stashout: cooldown, fee, who pays (the one asking), decided at Lester's
holdSlots / holdWeight 80 / 400000 What Lester holds for a gang without a turf
moods loyal ≥ 80, steady ≥ 55, nervous ≥ 30, sour Owner mood as a word on the shop card

Lester (13_lester.lua, lester.lua) ​

Option Default Description
ped / scenario 'ig_lestercrest' / 'WORLD_HUMAN_STAND_MOBILE'
radius 6.0 The "room": players inside it are present
minPresent 3 He only talks about gangs with this many eligible players in the room
rotateHours 8 Real hours per location; the order is fixed per day so everyone finds him at the same place
locations Garment factory, El Burro Heights, Videogeddon (La Mesa) { id, label, coords = { x, y, z, w } }
sessionTimeoutMinutes 20 A crew screen nobody touched closes
founding.buyIn 75000 Dirty cash, pooled on the table (0 = free)
founding.failKeeps 0.5 Share of the buy-in Lester keeps when the trial fails
founding.cooldownHours 48 Per founder after a failed trial
founding.reserveHours 72 A crew that passed has this long to finish (vote, turf, colours)
founding.showSealed true Sealed slots appear as "Sealed" (never where or when)
founding.forgetDays 14 An unfinished flow is dropped after this
eligibility.minPlaytimeHours 10 Hours in the city (0 = no check). Counted from the day np_gangs is installed unless playtime returns your own number (Installation)
eligibility.playtime nil function(src, identifier) return hours end
eligibility.blockedJobs police, sheriff, state, ambulance, fire, doj, government, fib Nobody on a payroll founds or joins a gang
intel { enabled = true, item = 'lester_note', price = 2500, account = 'cash', weight = 10 } The note that tells one player whether the board changed

Trial (trial.lua) ​

Option Default Description
workRadius / zTolerance 3.5 / 12.0 Metres from a work / carry spot; positions are compared in 2D with this height tolerance
downStates isDead, dead, inLaststand Player state bags that mean "down" (set by your death resource)
heat max = 100, failAt = 100, patrolAt = 60, decayPerMinute = 3 Causes: witness 18, alarm 25, shots 10, down 15, spotted 8, lost 20, damage 6, left 6, patrol 10. A job may override a weight
witness { chancePerSecond = 0.12, everySeconds = 20 } While a covered job runs without cover
patrol { seconds = 120, npc = true } After patrolAt
carryProp 'prop_cs_cardbox_01' The crate in your hands on a carry step: an np_prophandler attachment everyone sees
rating quiet A 20 / B 45 / C 70 peak heat; speed A 0.55 / B 0.75 / C 0.90 of the time limit Survival counts founders who went down
jobs paper (break-in), convoy, rounds (delivery), corner (hold), shadow (tail) Each a list of objectives the server walks through

A work objective may carry minigame = false | '<game id>' | { game, difficulty, opts }: the np_minigames game it is played as while np_minigames runs.

Objective types: enter, work, carry, hold, deliver, tail, stop, gather. Every job needs one objective with each = true (or a hold with need = 'all'): nobody is carried.

Coordinates are examples

All trial coordinates are examples in South Los Santos. Walk every job once on your server and move the spots that end up inside a wall or on a roof (Before you open it).

Election, territory, colours, trusted ​

Option Default Description
Config.Election.seconds 90 Length of the ballot
Config.Election.minFounders 2 Founders in the room to hold the first vote
Config.Election.reelect { everyDays = 14, gatherMinutes = 10, minPresent = 2, retryHours = 1 } Trusted individuals may call a new vote at Lester's
Config.Election.absentDays 14 Lester calls one himself when the OG has been gone this long (0 = never)
Config.Territory.rerollFee 15000 One reroll of Lester's pick, dirty cash (0 = free, false = no reroll)
Config.Territory.discount A 20, B 10, C 0, D 0 % off a hand-picked turf by trial rating
Config.Colours.placeholder 'Crew %s' The name until staff approve it (%s = the tag)
Config.Colours.firstCrate A 8, B 6, C 5, D 4 Bandanas in the first crate by trial rating
Config.Trusted.offerSeconds 45 How long a candidate or recruit has to accept
Config.Trusted.bonusByStrength { 0, 0, 0, 1, 2 } Extra trusted slots per strength dot
Config.Trusted.crate price = 1500 (dirty), initial = 4, weekly = 6, max = 12, restock Friday 00:00, perDay = 3 Lester's bandana crate

Street menu (16_street.lua) ​

Option Default Description
key / command 'G' / 'gangmenu' Hold the key with the bandana on. Players rebind it in the GTA key settings
toastSeconds / panelSeconds 7 / 12 The turf toast and the panel under it when entering a turf in colours
actions spray, paintOver, rob, collect, lean, corner, openStash, handBandana Order, icon, tint and hook name of each row. tint = 'gang' paints the tile in the bandana colour. rank = 'trusted' locks a row for members

Graffiti (graffiti.lua) ​

Option Default Description
item / registerItem 'spray_can' / true false = no item needed
reach 3.0 Metres from the wall point
spray / paintOver 12 s / 9 s, one can each
wallCooldownMinutes 10 A wall that just changed can't be touched again right away
attention 1 Police attention per tag
alertHolders true The turf's holders (in colours) hear about a rival's work on their walls
draw distance = 28.0, max = 6 The tag letters are drawn at the wall in the gang's colour for everyone nearby

Robbing (rob.lua) ​

Option Default Description
radius / heightDiff / cone 3.0 / 1.6 / 70 Distance, height difference and degrees left / right of where the robber looks
seconds 8 The victim must stay surrendered this long
requireWeapon true Server-side check of the selected weapon
sameColours false May people in the same colours rob each other
mode 'auto' 'inventory': open the victim's pockets through the inventory. 'share': take a share of cash and dirty cash. 'auto': inventory when it can
share { cash = 50, dirty = 100, max = 25000 } Percent of what the victim carries, capped
warnInventoryToast true Warn at start while np_inventory's robbery toast names the robber (below)
cooldownMinutes / victimMinutes 10 / 20 Per robber; the same person can't be robbed again for this long
bandana { enabled = true, seconds = 6, cooldownMinutes = 5 } Taking a bandana off a downed player
witness { radius = 40.0, notify = true, attention = 3, cooldownSeconds = 60 } Players near the robbery get a toast with the colour
handsUpStates / downedStates / handsUpAnims handsUp, npgHandsUp / isDead, dead, downed, … What counts as surrendered or downed
dispatch nil function(data) called for every robbery with { kind, coords, turf, color, print, description }

Robbing and np_inventory's toast ​

Robbing in inventory mode opens the victim's pockets through np_inventory, whose own toast tells the victim the robber's name ("… is going through your pockets"). np_gangs' own toast names only the colour, as designed. Until np_inventory offers a way to make that anonymous, pick one:

  • set Config.Rob.notifyVictim = false in np_inventory's shared/config.lua; np_gangs warns in the console at start while that option is still on (Config.Rob.warnInventoryToast = false in np_gangs silences the warning), or
  • set Config.Rob.mode = 'share' in np_gangs: robbing takes a share of the cash and dirty cash instead of opening the pockets.

Protection money (protection.lua) ​

Option Default Description
split { stash = 80, collector = 20 } Percent, must add up to 100
tickMinutes 60 How often the shops put money aside (persistent, catches up after a restart)
stopAfterDays / lateAfterDays 14 / 7 Uncollected this long, the owner stops; "collected regularly" is lost
minCollect / collectSeconds 50 / 6
mood payAtZero = 0.4, target base 40 + tag 20 + noRobbery 20 + regular 20, driftPerHour = 2 Pay = weekly × (payAtZero + (1 − payAtZero) × mood / 100)
robbery.events np_shops:server:robbed, esx_holdup:robberyStarted, qb-storerobbery:server:takeMoney Server events that count as a shop robbery
robbery radius = 30.0, cooldownMinutes = 30, dueLoss = 50, attention = 5, alert = true
store memberDiscount = 25, currency = 'cash', items per shop kind The members' price in a protected shop. Without np_shops, np_gangs registers two inventory shops per protected shop (public and members-only), neither announced with a location. With np_shops it is one np_shops storefront npg_store_<id> (or the np_shops shop it is linked to) and the members' price is a priceModifier hook
keys collect E, back room H, store Y

Takeover (14_takeover.lua, takeover.lua) ​

Option Default Description
enabled true Per turf it can also be switched off in the editor
loot { min = 10, max = 25 } % of the losers' stash stacks, rolled once, picked at random
keepOldTurf true Winners hold both turfs; false: they move and the old one goes back to Lester's pool
contestThreshold / contestHours / lockoutHours 45 / 48 / 72
minDefendersOnline 2 No offline raiding: leaning needs this many defenders in the city
quietHours { 4, 10 } No pressure between these hours (server time)
lean seconds = 120, minAttackers = 2, radius = 8.0, breakRadius = 12.0, cooldownMinutes = 30, moodHit = 15, attention = 4 Leaning on a shop
decay { afterDays = 7, perDay = 10 } Inactivity, see Turfs → Decay. perDay = 0 switches it off
claimOpen true A gang without a turf takes an open one by tagging it past the threshold
resultHours 24 How long the result of a contest stays in the street menu
dissolve { enabled = true, crate = true } Dissolving at Lester's empties the stash into a pickup crate first

np_drugs (15_drugs.lua, corner.lua, trade.lua) ​

Only used while np_drugs runs. See Corners & trade.

lua
Config.Drugs = {
  enabled = 'auto',                -- 'auto' | true | false; needs np_drugs running
  corners = {
    minMembersOnline = 2, maxBagsOnSeller = 6, quietHours = { 4, 10 },
    roles = { lookout = { heatFactor = 0.6 }, runner = { carry = 6 } },
    customers = { interval = { 25, 70 }, queueMax = 4, regularsBonus = 0.10 },
  },
  price     = { setBy = 'og', min = 0.6, max = 1.6, changeCooldownHours = 24 },
  demand    = { perTurf = true, saturationPerHour = 40, recoverPerHour = 15 },
  split     = { seller = 20, crew = 10, stash = 70,
                limits = { seller = { 10, 40 }, crew = { 0, 20 }, stash = { 50, 90 } } },
  outsiders = { mode = 'tax', tax = 20, alert = true,                        -- 'alert' | 'tax' | 'forbid'
                limits = { modes = { 'alert', 'tax', 'forbid' }, tax = { 5, 30 } } },
  heat      = { perSale = 2, decayPerMinute = 1, patrolAt = 75, raidAt = 100 },
  grip      = { perSale = 0.02, rivalStampPenalty = 0.05, capPerDay = 5 },
  production = {
    mode = 'permit',               -- 'open' | 'permit' | 'members'
    labSlots = { base = 2, atGrip = { [60] = 3, [85] = 4 } },
    permitShare = { min = 5, max = 30 }, supplyLines = true,
  },
}
Config.Corner Default Description
radius / leaveRadius / crewRadius 6.0 / 25.0 / 90.0 Start and serve; the shift ends past this; lookout and runner are off the shift past this
customers maxCount = 3, patienceSeconds = 90, walkSeconds = { 6, 12 }, regularChance = 0.6
lookout { min = 8.0, max = 60.0, spotRadius = 5.0, warnBefore = 10 } Counts while standing in one of the corner's lookout spots (a ring without spots)
drop slots = 20, maxWeight = 60000, searchCommand = 'searchspot', searchSeconds = 3, dumpster props The drop: not announced, but anyone who searches the spot opens it
heat { coolAt = 45, patrolAttention = 4, raidAttention = 10 } Customers return below coolAt
police { jobs = { 'police', 'sheriff' }, dispatch = true, codes = { patrol = '10-31', raid = '10-31' } } Patrols and raids go through np_drugs' Dispatch (its witness delay and police adapter, kind corner, the turf and the colour as description rows, codes the radio code per event). dispatch = false, or np_drugs' dispatch switched off: a toast with a waypoint for these jobs
badBatch { mood = 15, regularsAwayDays = 3 } Owner mood lost per protected shop; days without regulars
Config.Trade Default Description
priceStep 0.05 One step of a price on the board (multiplier of the street value)
walkAway { at = 1.05, span = 0.35 } Above demand × at buyers thin out; span further up nobody comes
demand default = 1.0, min = 0.25, max = 3.0, substances = {} Per turf and substance; admins set it in the editor
corner { bags = { 2, 12 }, quietMaxHours = 12 } Bounds for the OG's corner rules
permits { aliasLength = { 2, 24 }, defaultShare = 15 }
supply { weekly = 40, maxWeeks = 1.0, collectRadius = 3.0 } A protected shop brings in ingredients for one production line
seized { base = 2, perUnits = 50, max = 10 } Police attention a seizure adds to the turf
stampGlyph 'crown' The gang stamp's glyph at np_drugs' batch table
statsDays / badBatchKeep 7 / 10 "The week's numbers" on the board; bad-batch alerts kept per gang

Minigames (minigames.lua) ​

Option Default Description
enabled true Skill games instead of progress bars while np_minigames runs
difficulty 'medium' When a mapping names none
maxMove 2.5 Metres a player may move during a game before it fails (0 = off)
timeoutSeconds 300 A game the server never heard back from is forgotten after this
trial true Lester's trial: work steps play their minigame
uses.spray / uses.paintOver off; sway easy / power easy Graffiti as a game

See Integrations → np_minigames.

Staff editor (admin.lua) ​

Option Default Description
command 'gangadmin' Opens the editor
menuEntry true With np_menu: an entry in the on-foot radial, for staff only
nameApproval { autoApprove = false, notifyStaff = true, keepDays = 30 } New gang names pass a staff check once
layoutDir / defaultLayout 'layouts' / 'layout' Layout files (JSON) in this folder of the resource
walk { dropControl = 38, backControl = 177 } E drops, BACKSPACE returns
attentionSteps { 15, 50, 85 } Police attention steps in the editor

Who is staff: np_admin's permission nodes, else 00_core.lua (Installation → Permissions).

Editable in np_admin ​

With np_admin running, these keys are on its Resource settings page under Gangs (shared/np_admin_settings.lua). np_admin stores only the overrides; shared/config/ stays the default. Changes apply live (the slot count moves Lester's board at once) and land in the staff log. The settings are listed even while np_gangs is stopped.

Category Keys
General Locale (reload), Debug, Admin.nameApproval.autoApprove
Slots Slots.max, Slots.reserveMinutes, Gang.homelessDays
Lester The buy-in, Lester.eligibility.minPlaytimeHours
Bandana Bandana.strangersCanWear (reload), Bandana.toggleMs
Takeover Takeover.enabled, contestThreshold, contestHours, lockoutHours, loot.min, loot.max, keepOldTurf, minDefendersOnline, decay.afterDays, decay.perDay
Protection Protection.split.stash, Protection.split.collector
np_minigames Minigames.enabled, Minigames.trial, Minigames.difficulty, Minigames.maxMove, Minigames.uses.spray.* / uses.paintOver.* (enabled, game, difficulty)
np_drugs Drugs.enabled (restart), the split limits (seller, crew, back room, each at least / at most), Drugs.outsiders.limits.modes, the outsider tax range, Drugs.price.min / max / changeCooldownHours, Drugs.corners.minMembersOnline, Drugs.heat.patrolAt / raidAt, Drugs.grip.perSale / capPerDay, Drugs.production.mode, the permit share range, Drugs.production.supplyLines

Not on the page on purpose (structural or bulk data, edit the files or use the editor): turfs and shops, bandana colours, prints and wear styles (variants and prices are in the editor's Setup tab), Lester's locations, the trial jobs and their coordinates, keys, item lists, and the staff lists of 00_core.lua.