Skip to content

Configuration ​

Everything is in shared/. All files are shared (client and server), so nothing secret goes in there. Money is whole dollars, distances are metres, board positions millimetres from the bull. Numbers in the screenshots are defaults, not rules.

With np_admin running, most of it is also on its Resource settings page under Darts (see Editable in np_admin).

File What
shared/config.lua Bridges, UI, native assets, interaction distances, modes, timeouts, throw validation, the sway model, intoxication, stakes, rental, handicap, XP, ratings, perks, the house regular, leagues, cups, challenges, items, integrations, keys, staff
shared/config_pubs.lua Pubs and their boards, house rule defaults, the chalkboard
shared/config_gear.lua Dart sets, parts and their multipliers, flight designs and how they unlock
shared/np_admin_settings.lua What staff can edit live in np_admin

General ​

Option Default Description
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone', or auto-detect (esx → qbx → qb → standalone)
Config.Inventory 'auto' 'np_inventory', 'ox', 'qb', 'esx', 'none', or auto-detect (np_inventory → ox → qb → esx → none)
Config.Locale 'en' 'en' or 'de'
Config.Debug false Debug output
Config.AutoCreateTables true Run sql/np_darts.sql at start (CREATE TABLE IF NOT EXISTS)
Config.Material 'server' 'server' (np_admin theme), 'frosted' or 'liquid' (Liquid Glass)
Config.Theme nil Resource-local brand override, e.g. { brand = '#3d74ff', strength = 'accent' } (nil = server theme)
Config.Scale nil UI scale (nil = max(0.75, height / 1080))
Config.Currency '$' Currency symbol
Config.RateLimit { perSecond = 12, burst = 24, maxPayload = 16384 } Token bucket per player over every RPC, and the largest payload in bytes

Native assets (Config.Native) ​

The GTA V names np_darts uses, and the offsets from Rockstar's darts script. Change them only to swap assets.

Key Default Description
models.cabinet 'prop_dart_bd_cab_01' Dartboard cabinet (map prop at every native board, spawned for placed boards)
models.board 'prop_dart_bd_01' Bare board
models.dart, models.dartAlt 'prop_dart_1', 'prop_dart_2' Your darts, the opponent's
models.chalkboard 'bkr_prop_clubhouse_blackboard_01a' Chalkboard prop model (the lobby chalkboard itself is a DUI drawn on the wall, see below)
models.housePed 'a_f_m_salton_01' The house regular
anims.dict, anims.clubhouseDict 'mini@darts', 'anim@amb@clubhouse@mini@darts@' Bar boards, MC clubhouse boards
anims.* enter_throw_a …, throw_idle_a (+ _up _down _left _right), throw_overlay, throw_underlay, wait_idle, wait_lose, retrieve_neutral, retrieve_win_a/b, retrieve_fail_a/b, retrieve_to_wait Clip names; outroDict = 'mini@dartsoutro' with darts_outro_01_guy1/2
sounds.bank 'SCRIPT\\DARTS' Script audio bank
sounds.* DARTS_THROW_DART_MASTER, DARTS_HIT_BOARD_MASTER, …_WIRE_…, …_BULLSEYE_…, …_DART_…, …_WALL_…, DARTS_SCORE_DOUBLE_MASTER, …_TRIPLE_…, DARTS_SCOREBOARD_MASTER Throw, hits, stingers, scoreboard tick; camPan, win, lose, select as { name, soundset }
speech.* DARTS_180, DARTS_140, DARTS_BULLSEYE, DARTS_BUST, DARTS_MISS_BOARD, DARTS_PLAYING_WELL, DARTS_PLAYING_POORLY, DARTS_WIN, DARTS_LOSE, DARTS_BOAST, DARTS_HAPPY, GAME_HECKLE, GAME_GOOD_OTHER, GAME_BAD_OTHER Speech contexts, params = 'SPEECH_PARAMS_FORCE'
camShake { name = 'HAND_SHAKE', min = 0.04, perAmp = 0.012, max = 0.45 } Aim camera shake, scaled by the sway
board.radius 0.17 Outer double radius (m)
board.dartDepth -0.045 Stuck dart prop in front of the face (m)
board.oche, board.waiting (−0.40, −2.337, −1.7272), (0.50, −2.337, −1.7272) Thrower and next player, in the board's frame (x right, y towards the oche, z up)
board.throwFrom, board.retrieve Hand at release, where you stand to pull your darts
board.aimCam, board.wideCam, board.reactCam The darts script's camera offsets, pitch, yaw and FOV
dartRotation { x = 0, y = 0, z = 0 } Stuck dart rotation relative to the board heading
handBone, handOffset 57005 (SKEL_R_Hand) Dart in hand
celebrate, cheer thumbs_up, slow_clap G after a big moment, H while watching
scripts { 'launcher_Darts', 'darts' } Rockstar scripts terminated next to np_darts boards
suppressBlips false Also remove darts blips (sprite 103) np_darts didn't create
blipSprite 103 Pub blips

Gameplay ​

Option Default Description
Config.Aim { sensitivity = 115.0, padSpeed = 260.0, maxRadius = 240.0 } mm per mouse unit, mm per second on a pad, how far from the bull you can aim
Config.Interact { distance = 2.2, ocheDistance = 1.6, spectateDistance = 12.0, pubRadius = 30.0 } Prompt and lobby, standing at the oche, watching
Config.Modes see below Which modes exist and their options
Config.MaxPlayers 8 Players per match
lua
Config.Modes = {
  x01 = { enabled = true, starts = { 301, 501, 701 }, default = 501, legs = { 1, 3, 5, 7 } },
  cricket = { enabled = true, legs = { 1, 3, 5 } },
  clock = { enabled = true, multiples = false },
  killer = { enabled = true, lives = 3, minPlayers = 3, maxPlayers = 8 },
  practice = { enabled = true },
}
Config.Match Default Description
dartTimeout 45 Seconds per dart before it counts as a miss
pullTimeout 25 Seconds until the darts are pulled automatically
disconnectGrace 60 Seconds a disconnected or departed player has before forfeiting
leaveDistance 35.0 Metres from the board that count as leaving
challengeTimeout 45 Seconds a challenge stays open
maxOpenPerBoard 1 Open challenges per board
idleLobby 120 Seconds a lobby can sit in setup

Throw validation (Config.Throw) ​

Option Default Description
minAim, maxAim 250, 60000 ms of aiming before a release is plausible, and the longest
clockSlack 1500 ms tolerance between client and server time
maxAimRadius 260.0 mm from the bull the aim point may be
bounceWire 0.9 mm from a wire where bounce-outs can happen
bounceBase, bounceWorn 0.18, 0.55 Bounce-out chance on a fresh board, extra on a fully worn bed
robinHood, robinHoodChance 2.2, 0.35 mm to a previous dart, chance of a dart in a dart

Sway (Config.Sway) ​

Option Default Description
baseAmp 15.0 mm of drift at 1.00×
baseSigma 6.5 mm of gaussian grouping
period 1150 ms for the release cursor to cross the 12 pips once
window 0.30 Share of the cursor travel that is the window
breathMax, breathCalm, breathShake, breathRecover 3000, 0.35, 1.7, 4000 ms of calm, sway while holding, sway after holding too long, ms to recover
inWindowError, outWindowError 6.0, 42.0 mm of vertical error at the window edge, per window width outside it
alcohol { courage = 0.08, courageNerves = 0.05, perLevel = 1.6, exponent = 1.15, blackout = 0.95, sigma = 0.8 } Dutch courage below courage, extra sway above it, no throwing from blackout
nerves { matchDart = 0.10, bigStake = 0.08, bigStakeFrom = 1000, crowdPer = 0.02, crowdMax = 0.08 } Extra sway on match darts, big stakes and per spectator
fatigue { perDart = 0.0012, max = 0.18 } Arm fatigue over a match (heavier barrels tire more)
assisted { amp = 0.6, window = 1.6 } Assisted aim (accessibility): less sway, a wider window

See Playing for what each factor does.

Intoxication (Config.Intox) ​

The server takes the highest of every source, 0 (sober) to 1 (blackout).

Option Default Description
npDrugs 'auto' np_drugs GetBodyState(src).bac (per mille)
blackoutBac 3.0 Per mille that maps to 1.0
esxStatus, esxStatusName, esxStatusMax 'auto', 'drunk', 1000000 esx_status drunk (esx_optionalneeds)
stateBags { 'drunk', 'alcohol', 'intoxication', 'bac' } Player(src).state.<key>: 0..1, 0..100, or per mille for bac
native true The client reports GTA's drunk movement clipsets (fallback)
nativeLevels move_m@drunk@slightlydrunk = 0.25 … verydrunk = 0.8 Level per clipset
soberItems, soberMinutes { coffee = 0.15, water = 0.08 }, 10 np_inventory items that steady the hand, and for how long
pintsPerLevel 8 HUD text: "2 pints" = level × this

Money ​

Option Default Description
Config.Payments 'auto' 'auto' (np_payments when started), true (required: refuse money without it), false (framework money only)
Config.Stakes.enabled true Stakes on
Config.Stakes.min, max, step, default 10, 5000, 10, 0 Stake range (pubs cap it lower with stakeCap)
Config.Stakes.account 'bank' Framework account charged without np_payments
Config.Stakes.rakeMax 10 Server cap on the pub's rake in %
Config.Stakes.payout 'bank' Winnings go to this account
Config.Stakes.handicapRequiredAbove nil Server-wide: stakes above this force the handicap (pubs set their own)
Config.Rental { enabled = true, minutes = 60, account = 'bank' } Board rental per period
Config.Handicap { perAveragePoint = 4, step = 10, max = 200, minGap = 5 } Points off the weaker player's start per point of average gap

See Stakes, escrow & rental.

Progression ​

lua
Config.XP = { visit = 2, ton = 5, s180 = 25, checkout = 10, legWon = 15, matchWon = 40, matchPlayed = 10,
  farmWindow = 24 * 3600, farmAfter = 3, farmFactor = 0.25, perLevel = 120 }
Config.Ratings = { start = 1000, k = 24,
  ranks = { { min = 0, id = 'newcomer' }, { min = 1050, id = 'regular' }, { min = 1200, id = 'shark' }, { min = 1400, id = 'legend' } } }
Option Description
Config.XP XP per visit, ton, 180, checkout, leg, match won / played. After farmAfter matches of the same two players inside farmWindow seconds XP is multiplied by farmFactor. Level = floor(sqrt(xp / perLevel)) + 1
Config.Ratings Start rating, K factor, ranks by minimum rating
Config.Perks pointsPerLevel, the trees (hand, head, social), max ranks and effects per perk
Config.Heatmap { cell = 10, maxCells = 1500 }: mm per heatmap cell, cells per map

See Stats, ratings & perks.

House regular (Config.AI) ​

Option Default Description
enabled true The AI opponent (only at pubs with ai = true)
levels easy (Gus), pub (Shelley), shark (Raymond) { id, label, sigma, amp, window } per strength
thinkMs { 1400, 2600 } Delay per dart
voice 'A_F_M_SALTON_01_WHITE_FULL_01' Speech voice

Social ​

Option Default Description
Config.Leagues { enabled = true, weeks = 10, pointsWin = 3, pointsLoss = 0, fixtureGrace = 7200, promote = 2, maxPlayers = 12, fixtureLegs = 7 } Season length, points, seconds after a fixture's night before it forfeits, the promotion line
Config.Cups { enabled = true, sizes = { 4, 8, 16 }, houseCutMax = 10, maxEntry = 5000 } Bracket sizes, the pub's cut cap in %, the largest entry fee
Config.Challenges { enabled = true, perWeek = 3, rewardCash = { 100, 250, 400 }, pool = { … } } Weekly challenges (see Leagues, cups & challenges)
Config.Spectate { reactions = { cheer = 'clap', boo = 'thumbs-down' }, reactionCooldown = 4 } Seconds between reactions
Config.Broadcast { nineDarter = true, s180 = false } Server-wide announcements

Items ​

Option Default Description
Config.Items.set 'dart_set' Unique item with metadata (set, barrel, grip, shaft, flight, design, uid, durability)
Config.Items.perSetItems true Inventories without metadata (ESX): one item per set, dart_set_<id>
Config.Items.flights 'dart_flights' Consumable: restores the main set's flight durability
Config.Items.wearPerMatch 2 Durability lost per match
Config.Items.wornBelow 30 Below this the flights are frayed (wider grouping)
Config.Shop { enabled = true } The pro shop in the dart case at pubs

See Items.

Integrations ​

Every switch is 'auto' (used while started), true or false.

Option Default Description
Config.UseNpHud 'auto' Toasts, prompts, zone claims, announcements
Config.UseNpMenu 'auto' Third-eye options on the cabinets
Config.UseNpInventory 'auto' Busy lock while playing, runtime items, the coffee / water hook
Config.UseNpDiscord 'auto' Logs and staff roles
Config.Discord { log = 'np_darts', staffRoles = {} } np_discord log channel, role names that count as staff
Config.Phone { enabled = 'auto', id = 'oche', name = 'Oche', icon = 'fa-solid fa-bullseye', tint = 'gray', ui = 'web/dist/phone.html', default = false, description = … } The np_phone app. default = false: players install it from the App Store

Keys and staff ​

lua
Config.Keys = {
  interact = 'E', queue = 'Q', spectate = 'G', scores = 'TAB', chalk = 'C', rematch = 'R', pull = 'E',
  celebrate = 'G', practice = 'T', cheer = 'H', boo = 'J', leave = 'BACK',
  holdToThrow = false,   -- accessibility for everyone: hold LMB, the dart flies when the cursor is centred
}
Config.Admin = { identifiers = {}, groups = { 'admin', 'superadmin', 'god' }, command = 'darts' }

The key defaults go into RegisterKeyMapping; players rebind them in Settings → Key Bindings → FiveM. See Events, commands & keys. Config.Admin is the staff fallback without np_admin and the command name.

Pubs and boards (config_pubs.lua) ​

lua
Config.Pubs.yellowjack = {
  label = 'The Yellow Jack', sub = 'Sandy Shores', center = vector3(1985.6, 3051.6, 47.2), radius = 22.0,
  owner = { job = 'yellowjack', grade = 2 },
  blip = true,
  ai = true,
  rules = { rental = 15, rake = 5, stakeCap = 1000, handicapAbove = 250, free180Pint = true, happyHour = false },
  boards = {
    { id = 'yellowjack:1', label = 'Board 1', coords = vector3(1992.2932, 3050.5828, 47.9897), heading = 57.7832, lamp = 0.04 },
  },
}
Pub field Description
enabled false leaves the pub out
label, sub Name and area
center, radius The "in the pub" area: opponents, open challenges, staff listing
owner { job, grade } (that job at this grade or boss) or { identifiers = { … } }. See Pubs
rules House rule defaults (below); the owner changes them in the panel
ai The house regular may play here
blip Show a pub blip
boards The board list
Board field Description
id Unique, e.g. 'yellowjack:1'
label Shown in the lobby
coords, heading The bullseye (the origin of prop_dart_bd_cab_01) and the cabinet heading
spawn true places a cabinet; false uses the map's own
model Cabinet model (default Config.Native.models.cabinet)
anims 'bar' or 'clubhouse'
bucket Routing bucket of the board (interiors in their own bucket)
lamp 0..0.2: sway bonus from good light
draft { x, y } mm drift per throw for big flights (fans, AC)

Shipped pubs: yellowjack, lostmc, tequilala (enabled, the map's cabinets), clubhouse1, clubhouse2 (MC clubhouse interiors, disabled), henhouse, bahamamamas (no map cabinet, disabled until a board is placed).

lua
Config.HouseRules = { rental = 0, rake = 5, stakeCap = 1000, handicapAbove = nil, free180Pint = false, happyHour = false,
  pintItem = 'beer', sisalPrice = 240, boardPrice = 1800, maxBoards = 4 }
Config.Chalkboard = { enabled = true, offset = { x = 1.05, y = -0.02, z = 0.02 }, size = { w = 0.70, h = 0.95 },
  drawDistance = 9.0, resolution = { w = 560, h = 760 } }

Config.HouseRules fills in what a pub leaves out. Config.Chalkboard.offset is in the first board's frame (m).

Gear (config_gear.lua) ​

Key Description
Config.Gear.house 'brass': the set every pub hands out
Config.Gear.sets { label, barrel, grip, shaft, flight, design, material, price, house?, reward?, quality?, colour } per set
Config.Gear.barrels { min = 16, max = 30, step = 1 }
Config.Gear.parts grip, shaft, flight options with mult / add on the gear stats
Config.Gear.partPrice { grip = 60, shaft = 25, flight = 15, barrel = 300 }
Config.Gear.designs Flight designs { label, colour, unlock? }; unlock: nil (free), 'shop', 's180:N', 'league', 'milestone:<id>', 'challenge:<id>', 'sponsor'

See Dart sets & the dart case for the shipped sets and parts.

Editable in np_admin ​

With np_admin running, these keys are on its Resource settings page under Darts (shared/np_admin_settings.lua). np_admin stores only the overrides; the config files stay the default. live applies at once, reload on the client's next init, restart after a restart. See Concepts → Settings in np_admin.

Category Keys
General Locale, Material, Debug, Currency, Scale, Admin.command (restart), Admin.identifiers
Throwing Sway.baseAmp, Sway.baseSigma, Sway.period, Sway.window, Sway.breathMax, Sway.breathCalm, Sway.breathShake, Throw.bounceBase, Throw.bounceWorn, Aim.sensitivity, Keys.holdToThrow
Matches Match.dartTimeout, Match.pullTimeout, Match.disconnectGrace, Match.leaveDistance, Match.challengeTimeout, AI.enabled, Modes (json)
Money Payments, Stakes.enabled, Stakes.min, Stakes.max, Stakes.step, Stakes.rakeMax, Stakes.account, Stakes.payout, Rental.enabled, Rental.minutes, Handicap.perAveragePoint, Handicap.max
Progression XP (json), Ratings.k, Perks (json, restart), Broadcast.nineDarter, Broadcast.s180
Social Leagues.enabled, Leagues.weeks, Leagues.fixtureGrace, Cups.enabled, Cups.houseCutMax, Challenges.enabled, Challenges.pool (json)
Pubs & gear Pubs (json, restart), HouseRules (json), Chalkboard.enabled, Gear (json, restart), Shop.enabled, Items.wearPerMatch
Integrations UseNpHud, UseNpMenu (restart), UseNpInventory, UseNpDiscord, Discord.staffRoles, Phone.enabled (restart), Intox (json)
Native assets Native (json, restart)