Skip to content

Configuration ​

Everything is in shared/config.lua (core) and shared/config/ (one file per module). The files are shared (client and server), so keep secrets out of them. Months are roleplay months, money is whole dollars, and times are real seconds or minutes unless a key says otherwise. Some values can also be changed live on np_admin's settings page (see Editable in np_admin).

File What
config.lua Framework, inventory, locale, staff and jobs, permissions, sentences, security, behaviour, account, property bag, alert ladder, compatibility, keys
config/facilities.lua The facilities: cells, areas, intake and release points
config/integrations.lua Which siblings are used and their options
config/booking.lua Sentencing screen, penal code, modifiers, judge and lawyer jobs
config/intake.lua, release.lua Intake steps, pat-down, jumpsuit, prison bus; the release desk
config/parole.lua, alternatives.lua Parole hearings; community service, ankle monitor, bail
config/routine.lua, sight.lua, hud.lua The prison day, guard sight, the inmate HUD
config/jobs.lua, activities.lua Work detail; workout, yard games, tables and classes
config/commissary.lua, plug.lua, collect.lua, contraband.lua The prison economy and its items
config/escape.lua Breakout routes, alert ladder, dispatch, manhunt
config/visits.lua, mail.lua, phone.lua Visits, letters and packages, phones
config/console.lua, npcguards.lua The corrections console, NPC officers

Most modules have an enabled switch (Config.Routine.enabled, Config.Escape.enabled, …); set it to false to switch the module off.

Core ​

shared/config.lua

Option Default Description
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone', or auto-detect (es_extended → qbx_core → qb-core → standalone)
Config.Inventory 'auto' 'np', 'ox', 'qb', 'esx', 'none', or auto-detect (np_inventory → ox_inventory → qb-inventory → ESX)
Config.Locale 'en' 'en' or 'de', for server messages and the UI
Config.Debug false Debug log
Config.AutoCreateTables true Create the prison_* tables at start
Config.Integrations.<name> 'auto' false forces the built-in fallback for that sibling. See Integrations
Config.Jobs see Permissions Job groups { job = minimum grade }: guard, police, judge, lawyer
Config.AdminGroups { 'admin', 'superadmin', 'god' } Framework admin groups that pass every check
Config.Admins {} Identifiers that are admins ('license:…', 'discord:…', 'fivem:…', 'steam:…')
Config.AdminDiscordRoles / Config.GuardDiscordRoles {} Discord role ids or np_discord role names that are admins / guards (needs np_discord)
Config.StandaloneJobs {} Standalone only: [identifier] = { job, grade }
Config.Permissions jail = 'police', unjail = 'guard', status = 'police', time = 'guard', alert = 'guard' Who may do what: 'police' (guard or police), 'guard' or 'admin'. Admins pass everything
Config.Commands { jail = 'jail', unjail = 'unjail', status = 'jailstatus' } Command names
Config.MonthSeconds 30 Real seconds of online time per roleplay month
Config.Sentence.minMonths / maxMonths 1 / 1200 Shortest and longest sentence
Config.Sentence.defaultFacility 'bolingbroke' Used when no facility fits
Config.Sentence.arriveAt 'cell' Where a booking places the inmate unless it asks itself: 'cell' or 'intake' (the sentencing screen asks for intake)
Config.Sentence.releaseOnZero true false: nobody is released automatically; staff release them
Config.Sentence.tickSeconds / saveSeconds 1 / 30 Served-time tick and database write-behind
Config.Solitary.maxMinutes 120 Longest solitary stay any caller may ask for
Config.Security.levels minimum, medium, maximum, solitary Levels in order, with icon and tint
Config.Security.byMonths 0 → minimum, 60 → medium, 240 → maximum Level of a new inmate: the last row whose months the sentence reaches
Config.Behaviour { start = 50, min = 0, max = 100, keepAfterRelease = true } The behaviour score, the second currency next to months
Config.Account { cap = 2500, takeCash = true, payoutOnRelease = true } Inmate account: cash taken at booking up to the cap (the rest stays in the property bag); paid out as cash at release
Config.Property.enabled true Seal everything the inmate carries at booking, hand it back at release
Config.Property.seize / seizeCategories weapons, lockpick, black money, drugs / { 'illegal', 'weapon' } Seized for good instead (also every item with contraband = true)
Config.Property.keep {} Items the inmate keeps (an ID card, for example)
Config.Alert quiet, suspicious, siren, manhunt The facility alert ladder
Config.Compat { pickle = true, qb = true, esxJail = true } Compatibility with other jail scripts, see Bridges
Config.RateLimit { perSecond = 8, burst = 16, maxPayload = 8192 } Token bucket per player over every RPC
Config.Keys { interact = 'E', cancel = 'X', skill = 'E' } Default keys (rebindable in the FiveM key settings)
Config.Distance { interact = 2.0, player = 3.0, desk = 3.0 } Interaction distances in metres
Config.ImagePath 'nui://np_inventory/web/images/' Where item images are read from

Facilities ​

shared/config/facilities.lua. Coordinates are for the vanilla map; move them for your interiors or MLOs. Labels come from the locale files (facility.<id>).

Facility Kind Picked for Security Cells
bolingbroke prison 16–1200 months minimum, medium, maximum, solitary 11 (blocks A, B, C, solitary S1)
mrpd holding 1–15 months minimum 3
paleto lockup only when chosen minimum, medium 2
lua
Config.Facilities.bolingbroke = {
  label = 'Bolingbroke Penitentiary', short = 'Bolingbroke', kind = 'prison', order = 1, icon = 'building-shield', tint = 'orange',
  auto = { minMonths = 16, maxMonths = 1200 },  -- false: only when named
  security = { 'minimum', 'medium', 'maximum', 'solitary' },
  zone = { center = vector3(1691.0, 2565.0, 45.6), radius = 240.0 },
  intake = vector4(...), release = vector4(...),          -- arrival and release points
  points = { intakeDesk = vector3(...), releaseDesk = vector3(...) },
  areas = { cellblock = { coords, radius }, yard = …, kitchen = …, laundry = …, visiting = { …, booths = { … } }, infirmary = … },
  cells = { { id = 'A1', block = 'A', coords = vector4(...), beds = 2, security = 'minimum' }, … },
}

When no facility is named, the lowest order whose auto range fits the sentence is picked. A sentence that asks for a security level a facility does not hold gets the nearest one held. Modules add their own areas from their files (Config.Facilities.bolingbroke.areas.plateshop = { coords, radius }).

Integrations ​

shared/config/integrations.lua. Every sibling defaults to 'auto' (used while it runs). What each one does: Integrations.

Option Default Description
logKinds bookings, releases, time changes, seizures, fines, escapes, bribes, finds, lockdowns, solitary, … Prison records forwarded to np_admin's audit log and np_discord's log channel. A name starting with ^ is a Lua pattern
np_discord.logChannel 'prison' np_discord log channel (convar discord_webhook_prison)
np_payments.fines 'invoice' Fines of an accepted charge sheet: 'invoice' (pay later), 'charge' (at once through np_payments), false (framework money)
np_payments.invoiceDays 7 Due date of a fine invoice
np_payments.payee { type = 'society', id = 'police' } Who receives fines
np_payments.merchant San Andreas Courts Merchant shown on the checkout
np_payments.chargeReasons bail, top-up, stamp, package, fine Money np_prison takes for these reasons goes through np_payments' Charge (category service)
np_character.spawn true Jailed characters get a cell spawn
np_identification.warrants true Bail no-shows and escapees count as open warrants
np_identification.suspendWeaponLicense { enabled = false, minMonths = 30, days = 30 } Suspend the weapon license at booking
np_gangs.vetoWhileJailed / notify true / true No gang street actions while jailed; members are told when one of theirs is booked or breaks out
np_drugs.contraband / vetoWhileJailed true / true Illegal np_drugs products are contraband; no sales or production while jailed
np_drugs.drugTest { enabled = true, behaviour = -5, rehab = false } Drug test at intake: positive = record and behaviour, optional court-ordered rehab
np_helicam.bolo true Escapees in a vehicle during siren or manhunt: plate on the BOLO list (code = '10-98', rescan 20 s, notifyAir)
np_screens.enabled / boards false / {} np_screens boards that show the alert level: { contentId, facility, media = { quiet = url, siren = url, default = url } }
np_mdt.dispatch / priority true / 1 Breakout calls to the MDT dispatch board
np_menu.radial / context true / true A prison radial; player and object options in np_menu's context menu when no target resource runs

Config.Minigames (shared/config/minigames.lua) makes the paying skill checks server-validated through np_minigames while it runs: enabled, uses, fence / fenceWires, opts per use, delegateSkillCheck. See Integrations → Minigames (np_minigames).

Sentencing ​

shared/config/booking.lua

Option Default Description
Config.Booking.distance 5.0 Officer to suspect, checked on every step
Config.Booking.close 1.5 The target option shows for a suspect who is cuffed or at least this close
Config.Booking.maxCharges / maxCount / maxMonths 24 / 9 / 600 Charges per sheet, counts per charge, cap of one sheet
Config.Booking.repeatOnPriors true "Repeat offender" starts on when the suspect has prior sentences
Config.Booking.chargeSheet { timeout = 60, autoAccept = true } Seconds to answer; no answer = accepted (false: the sheet lapses)
Config.Booking.fine { accounts = { 'bank', 'cash' }, partial = true } Without np_payments: accounts charged in order; take what is there
Config.Booking.draftHours 24 A saved draft is offered again for this long
Config.PenalCode 24 charges { id, code, label, class = 'felony' | 'misdemeanor' | 'infraction', months, fine, icon }
Config.BookingModifiers repeat +20 %, cooperative −10 %, plea −25 %, lawyer 0 %, judge Applied in order; judge = true sends the sheet to the judges
Config.Jobs.judge / lawyer judge, doj / lawyer, publicdefender Job groups the screen and parole use

Intake and release ​

shared/config/intake.lua, release.lua

Option Default Description
Config.Intake.forAll false Run intake for every booking (/jail, exports, compatibility events), not only the sentencing screen
Config.Intake.minSeconds { transport = 8, mugshot = 4, jumpsuit = 1 } Server-side minimum per step
Config.Intake.intakeRadius 25.0 The mugshot is taken this close to the intake point
Config.Intake.patDown chance = 0.02, smallChance = 0.12, smallWeight = 100, maxMissed = 2 Chance per item to slip through. small lists small items, never (Lua patterns) are always found
Config.Intake.jumpsuit male / female ped components [component] = { drawable, texture }
Config.Intake.idCard 'prison_idcard' Handed out at the cell step when the item exists
Config.Intake.bus minMonths = 10, seconds = 20, pbus, route for Bolingbroke Optional prison bus when the officer ticks transport
Config.Release.desk { bolingbroke = true } Facilities with a release desk (others release at once)
Config.Release.escort / autoSeconds true / 300 Place the inmate at the desk; release anyway after this long
Config.Release.paper 'prison_release_paper' Release paper for served sentences and parole

Parole and alternatives ​

shared/config/parole.lua, alternatives.lua

Option Default Description
Config.Parole.share / minBehaviour 0.5 / 60 A hearing opens at this share of the sentence with at least this behaviour
Config.Parole.defaultEligible true Bookings that did not come through the sentencing screen
Config.Parole.retryMonths 10 Months to serve after a refusal
Config.Parole.command 'parole' Request and status for inmates, hearings for deciders
Config.Parole.deciders { 'guard', 'judge' } Job groups that decide (admins always may)
Config.Parole.board delaySeconds = 120, fallbackSeconds = 900, approveAt = 75 The NPC board when nobody decides
Config.Parole.period { min = 5, max = 240, share = 1.0 } Default period = months left × share
Config.Parole.conditions no weapons, curfew, check-in, no contact, drug tests Conditions a decider may tick
Config.Alternatives.maxMonths / requireFirstOffence 30 / false Which sentences may get an alternative
Config.Alternatives.service monthsPerTask = 3, taskSeconds = 12, penaltyTasks = 2, zone and spots around Legion Square Community service
Config.Alternatives.monitor radius = 60, graceSeconds = 180, addMonths = 5, dispatchEvent = 'np_prison:ankleMonitor' Ankle monitor (house arrest)
Config.Alternatives.bail perMonth = 500, min = 2500, max = 50000, courtHours = 24, windowMinutes = 120, graceMinutes = 30 Bail and the court date

Routine, sight and HUD ​

shared/config/routine.lua, sight.lua, hud.lua

Option Default Description
Config.Routine.clock 'cycle' 'cycle' (a day lasts dayMinutes real minutes), 'game' (the weather sync's clock, gameClock), 'real' (server time)
Config.Routine.dayMinutes 48 Length of a prison day in 'cycle' mode (the GTA default)
Config.Routine.schedules default, holding Periods with at ('HH:MM'), rollCall, chow, lockdown, work and the areas open in them
Config.Routine.facilities Bolingbroke and Paleto default, Mission Row holding Schedule per facility
Config.Routine.rollCall windowSeconds = 120, radius = 4.0, reward = 2, penalty = 10 Be at your cell within the window
Config.Routine.chow hunger = 60, thirst = 60, needsStock = true Free meal per chow period; with needsStock it takes a tray of the kitchen's stock
Config.Routine.sleep { multiplier = 3, radius = 2.5 } Sleeping in your bed during lockdown: time runs this much faster
Config.Routine.doors system = 'auto', list = {} Cell doors at lockdown. system: 'auto' (np_doors, then ox_doorlock, then qb-doorlock, then np_prophandler), 'np_doors' (as 'auto' while np_doors does not run), 'ox', 'qb', 'prophandler' ('natives' is an alias) or false. A door: { npdoors = 'np_doors id', ox = 'ox_doorlock name', qb = 'qb-doorlock id', model, coords, heading?, label? }; with 'np_doors' a door without npdoors is created in np_doors from its model and coordinates
Config.Sight range = 25, fill = 22, fillFar = 8, decay = 14 Guard sight 0–100 per inmate
Config.Sight.posts 3 posts at Bolingbroke Fixed watch posts; ped = true puts an np_npchandler guard NPC there (looks only)
Config.PrisonHud.claimZones { 'top-right', 'bottom-right' } np_hud zones the inmate HUD covers while jailed
Config.PrisonHud.needs true Own needs meters when np_hud does not run

Jobs and activities ​

shared/config/jobs.lua, activities.lua

Option Default Description
Config.WorkDetail.command 'jobboard' Opens the job board while jailed (false = only at the board)
Config.WorkDetail.crewBonusMonths / bonusBehaviour 1 / 2 Full crew of 2+; optional steps done
Config.WorkDetail.trustees 1 Last week's top workers who become trustee
Config.WorkDetail.stock chow 12 / 80, jumpsuits 24 / 80 (low 10) What the work feeds
Config.WorkDetail.boards one per facility Job board positions
Config.WorkDetail.jobs kitchen, laundry, cleaning, garden, plate shop, library, road crew, maintenance Each job is a config entry, see Daily life → Work detail
Config.Activities.skills / levels 10 skills / XP per level Skill XP is kept after release
Config.Activities.list pull-ups, bench, push-ups, basketball, boxing Workout and yard games
Config.Activities.tables window = 20, maxPlayers = 4, bets 1–20, dice (noodles), poker (cigarettes) Table games
Config.Activities.classes GED (20 months), culinary (14), anger management (10) Classes and their cut

Commissary, plug, collectables and contraband ​

shared/config/commissary.lua, plug.lua, collect.lua, contraband.lua. These files also hold every item np_prison adds (Config.Items, np_inventory format).

Option Default Description
Config.Commissary.kiosks 2 at Bolingbroke, 1 at Mission Row Kiosk positions
Config.Commissary.limitPeriod 7 days Weekly limits reset
Config.Commissary.catalog 15 goods { id, item, price, tab, limit?, maxOwned?, requires? = { trustee, behaviour, security } }
Config.Commissary.effects noodles, snack, coffee, cigarettes, bandage, pruno Hunger, thirst, stress, health, stamina, drunk
Config.Commissary.topups { show = 5, max = 2500 } Top-ups from outside
Config.Commissary.stripOnRelease true Prison items are taken at release
Config.Plug.spots / moveEveryHours 4 at Bolingbroke / 0 Where the plug stands; he moves on every restart
Config.Plug.tiers { 0, 3, 8, 15 } Completed trades per trust tier
Config.Plug.recipes shovel, wire cutters, book, burner, key mould, uniform, guard key { id, tier, gives, needs = { item = count } }
Config.Collect.spots 6 at Bolingbroke { id, item, chance, respawn, coords, job?, periods? }
Config.Contraband.spots mattress, toilet, hollow book, yard cache Hiding spots with slots, weight and a find chance
Config.Contraband.penalty { months = 15, solitaryMinutes = 5, behaviour = -10 } Found on the inmate
Config.Contraband.foundToGuard false What a guard finds goes to their pockets (else destroyed)
Config.Contraband.patDown find = 0.9, findSmall = 0.6 Pat-down chances
Config.Contraband.flaggedBonus / flagMinutes / watchedFlag 0.2 / 30 / 70 Flagged blocks
Config.Contraband.npc everyMinutes = 20, chance = 0.35, flaggedChance = 0.9 NPC shakedowns
Config.Contraband.bribe skipMinutes = 30, offerSeconds = 60, maxItems = 6 Bribes
Config.Contraband.recipes / pruno shank, poster, dummy / 45 minutes Goods made inside

Breakouts ​

shared/config/escape.lua

Option Default Description
Config.Escape.minPolice / countGuards 2 / true Police on duty before any route may start (guards count)
Config.Escape.plannerKey / plannerRadius 'F7' / 4.0 Opens the planner in the own cell
Config.Escape.night 22–5 Night for the fence route (the routine module answers when it runs)
Config.Escape.routes tunnel, fence, laundry, gate, outside See Breakouts
Config.Escape.heat suspicious = 60, calmMinutes = 8, sirenToManhunt = 25, manhuntMinutes = 30 The alert ladder
Config.Escape.siren sound = 'sounds/siren.ogg', volume = 0.35, radius = 350, lockdown = true Siren
Config.Escape.dispatch jobs, code = '10-98', resources, event = 'np_prison:dispatch', toastFallback = true Dispatch calls
Config.Escape.manhunt wantedHours = 24, GPS ping every 45 s for 6 min, bounty = 2500 After the escape
Config.Escape.caught addMonths = 30, addRemaining = true, security = 'maximum', sameFacility = true When an escapee is booked again
Config.Escape.facilities Bolingbroke Storm drain, dirt dump, fence, laundry cart, staff gate, breach points, planner map. Other facilities get breakouts by adding an entry

Visits, mail and phone ​

shared/config/visits.lua, mail.lua, phone.lua

Option Default Description
Config.Visits.slotMinutes / slotsAhead / checkInEarly 10 / 12 / 2 Visit slots
Config.Visits.maxPerVisitor / maxPerInmate 1 / 2 Open bookings
Config.Visits.onlyDuringPeriod 'visits' Slots lie inside this routine period (false: any time)
Config.Visits.lawyerJobs lawyer, attorney, doj Who books lawyer visits
Config.Visits.facilities Bolingbroke (6 booths), Mission Row (1) Desk, exit, booths and lawyer room
Config.Mail.callMinutes / reviewMinutes 30 / 20 Mail call; unreviewed letters go out unread after this
Config.Mail.stampPrice / stampItem 25 / 'prison_stamp' A letter from outside (bank) / from inside (item)
Config.Mail.maxLength / maxPerDay 600 / 10 Letters
Config.Mail.package price = 60, maxStacks = 4, maxCount = 10, autoCheck = 0.7 Care packages and the allowed items
Config.Mail.command / desks 'letters' / one per facility Where inmates read and write
Config.PrisonPhone.app id = 'corrections', default = true The np_phone app (default: on every phone)
Config.PrisonPhone.command 'corrections' The same app as a screen
Config.PrisonPhone.sealWhileJailed / voicemail true / true Seal the inmate's phone; tell callers, list missed calls at release
Config.PrisonPhone.topUp { min = 10, max = 1000 } Account top-up from the app
Config.PrisonPhone.wall seconds = 300, ringSeconds = 30, spots per facility Wall phones (a phone card per call)
Config.PrisonPhone.burner battery 8–30 %, notice = 0.06, noticeNearGuard = 0.35, caughtMonths = 12 The smuggled burner

Console and NPC guards ​

shared/config/console.lua, npcguards.lua

Option Default Description
Config.Console.command / computers 'prisonconsole' / per facility Where the console opens
Config.Console.maxTimeChange 120 Months a guard may add or take off in one step
Config.Console.solitary { minutes = 10, maxMinutes = 60 } Default and longest solitary stay
Config.Console.lockdownHoldMs 1500 Hold L this long to start a lockdown
Config.NpcGuards.model / spawnRange 's_m_m_prisguard_01' / 180.0 The officers' model and their np_npchandler spawn distance
Config.NpcGuards.checkSeconds 30 How often the roster is checked
Config.NpcGuards.countMinutes / shakedownMinutes / shakedownChance 15 / 30 / 0.5 What NPC officers do
Config.NpcGuards.posts 5 at Bolingbroke, 1 each at Mission Row and Paleto { coords, scenario, block, sight }

Editable in np_admin ​

With np_admin running, the settings page Prison edits these values in game:

Category Fields Applies
General Language, debug log restart / live
Sentences Real seconds per month, shortest and longest sentence reload / live
Inmates Starting behaviour, keep behaviour after release, account cap live
Minigames Minigames.enabled (server-checked skill checks through np_minigames), Minigames.fence (skillcheck or wires) live
Permissions Who may book, release, change time, change the alert level; staff Discord roles (without np_admin) live