All products

np_darts

Pub darts on GTA V's own dartboards in the Yellow Jack, the Lost MC clubhouse and Tequi-la-la. Fight a swaying reticle, your breath and your pints, and play 501, Cricket, Around the Clock or Killer against whoever is in the room. The server decides every dart, stakes are held in escrow, and pubs run leagues and cups through the Oche app.

v1.0.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler · np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
Version
1.0.0
Frameworks
ESX, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler, np_prophandler 1.1.0+
Database
Tables created on start
Inventory
np_inventory, ox_inventory, qb-inventory, ESX
Optional
np_payments, np_hud, np_phone, np_menu, np_admin and more
Languages
English, German
Build
Node 18+ to build the NUI once
Throwing at the Yellow Jack: the reticle with its trail and grouping ring on treble 19, the breath bar and the release pips, 81 left with the checkout T19 D12, the stake in escrow, two pints and the sway breakdown
Throwing at the Yellow Jack: the reticle with its trail and grouping ring on treble 19, the breath bar and the release pips, 81 left with the checkout T19 D12, the stake in escrow, two pints and the sway breakdown

Taken from the NUI in the browser at 1920×1080, with mock data.

What's in it

The server decides everything: the throw model, where each dart lands, the score and the money. The client only sends the aim point and timings.

GTA's own boards

  • The map's dartboard cabinets, darts stuck where they land and Rockstar's mini@darts clips.
  • The darts script's aim and reaction cameras, the darts sound bank and speech for 180s and busts.
  • Owners and staff place more boards on any bar wall in game.

Sway, not a laser

  • A slow figure-of-eight with a trail and a grouping ring, seeded by the server, so you see what it evaluates.
  • Hold breath for about 3 s, and a release window over 12 pips: early drops low, late goes high.
  • Pints, the dart set, perks, nerves, arm fatigue and the pub's lamp, shown in a sway breakdown.

Games

  • 501, 301 and 701 with double-in and double-out, legs best of 1 to 7, busts that explain themselves and checkout routes.
  • Cricket with cut-throat, Around the Clock, Killer for 3 to 8 players, practice and a house regular in three strengths.

Stakes and gear

  • Stakes in escrow through np_payments: the winner takes the pot minus the pub's capped rake. A restart refunds every held stake.
  • Board rental per hour, and dart sets as items: barrel, grip, shaft and flight with real trade-offs and wear.

Progress and the pub

  • Stats and a heatmap with insights, milestones, ratings, XP, levels and perks.
  • Leagues, cups and weekly challenges in the Oche app, a chalkboard lobby on the wall and a pub owner panel.

Works with your server

  • ESX and np_inventory first, also qbx, qb, ox_inventory, qb-inventory or the ESX inventory.
  • np_npchandler and np_prophandler 1.1.0+ are required, every other np_* sibling is optional and detected at start. Staff permissions through np_admin, no ACE.
  • Exports and server events for your scripts. English and German.

A closer look

Aim, breathe, release

Step up to the oche with E. The aim camera sits where Rockstar's darts script puts it, with its hand shake.

Throwing: the reticle, the grouping ring, the breath bar, the release pips and the sway breakdown
  1. Aim with the mouse. The reticle sways in a figure-of-eight; the grouping ring shows where 2 of 3 darts would land right now.
  2. Hold breath with the right mouse button: calm for about 3 s, then a shake worse than before.
  3. Throw: hold the left button and release while the cursor runs through the window. Hold to throw is in the accessibility settings.
  4. The server resolves the dart on a regulation board model, with its own grouping noise, wire bounce-outs and the odd Robin Hood. E pulls your darts and hands over the oche.

501, Cricket, Around the Clock and Killer

TAB shows the scoreboard. Big moments get a stage card with a caller line; everything else stays small.

A 180 with the stage card, a bust toast and a house rule toast
The 501 scoreboard with the checkout guide and the visit table
GameHow it is played
501 / 301 / 701Double-out (the bull counts) and double-in, legs best of 1, 3, 5 or 7, checkout routes that prefer your best doubles
CricketMarks, points on open numbers, cut-throat option
Around the Clock1 to 20 and the bull, with a multiples option
Killer3 to 8 players, numbers by the first dart, become a killer on your double, lives
  • The house regular: a Yellow Jack local in three strengths whose darts go through the same server model. Or practice alone.
  • Spectating with G: a mini scoreboard over the board, cheer with H and boo with J. A crowd adds a little pressure to the thrower.

The lobby and stakes in escrow

A chalkboard on the wall next to the board shows live matches, the queue (Q chalks your name), house records and the next nights.

The lobby: the chalkboard, the match setup, the stake in escrow and the opponents
PartHow it works
SetupGame, legs, double-in and out, handicap by average, stake and an opponent from the pub, an open challenge, the house regular or practice
StakesEach player confirms a checkout sheet, the winner takes the pot minus the pub's capped rake
SafetyEvery held stake is a database row: a crash or restart refunds it, offline players are paid when they next load
LeavingLeaving or disconnecting forfeits after a grace period
RentalPer hour, paid by the host. A valid rental lets you host again for free

Dart sets, stats and the heatmap

/darts opens your profile, /darts loadout the dart case.

Dart case: sets, parts with live stat deltas and flight designs
Profile: the heatmap, insights, doubles, milestones and rivals
  • Dart sets are items with barrel weight, grip, shaft, flight, design and durability. Heavy barrels resist sway but tire the arm, light ones widen the window, big flights group tighter but drift.
  • House darts for everyone, a pro shop at the pubs, flight wear and fresh flights.
  • Heatmap of all darts, aimed at T20 or at doubles, with plain-language insights, averages, first 9, checkout % and the high out with its route.
  • Milestones from pub lore (Maximum, Bed & breakfast, Shanghai, Robin Hood, a nine-darter with a server-wide broadcast), ratings, XP, perks and rivals.

The Oche app

With np_phone running, Oche is in the phone's app store, and your live score sits in the Dynamic Island while you play.

League: the division table with the promotion line and your next fixtureCups: the live bracket with the prize poolChallenges: weekly challenges and boards near you
  • Leagues: round-robin seasons per pub with the promotion line and your next fixture. Missed fixtures forfeit.
  • Cups: knockout brackets with escrowed entries and a prize pool, live in the app.
  • Challenges: weekly goals with cash and flight rewards.
  • Pubs: free boards and a waypoint, and notifications when a pub posts a night.

Pub owners

Set an owner per pub (a job and grade or identifiers), then /darts owner opens the panel.

The pub owner panel: boards and sisal, revenue, nights, house rules and staff
  • Boards with sisal wear: rotate for free or fit new sisal. Worn sisal bounces more darts out.
  • Revenue from rental, rake and drinks sold during matches, and a balance to withdraw.
  • House rules: rental, stake cap, rake, a handicap above a stake, 180 = a free pint and happy hour.
  • Nights posted to Oche, leagues and cups, staff, and "Add a board" to place a new cabinet on the wall you look at.

Set it up

Compatibility

ESX with np_inventory is the first target. Everything optional is detected with GetResourceState; the only hard dependencies are oxmysql, np_npchandler and np_prophandler 1.1.0 or newer.

InventoryItems
np_inventorydart_set and dart_flights registered at runtime, set builds and wear in metadata, a busy lock while playing, free pints
ESX inventoryRun items/esx_items.sql: one item per set, builds in the database
ox_inventory, qb-inventoryAdd the entries from items/
SiblingWhat np_darts does with it
np_paymentsEvery charge is a checkout sheet: stakes, rental, shop, sisal, league and cup entries, with refunds
np_hudToasts, prompts, zone claims while throwing, an announcement for nine-darters
np_phoneThe Oche app, the live score island and notifications for posted nights
np_menuThird-eye options on the cabinets: play, chalk your name, watch, dart case, stats
np_prophandlerRequired (1.1.0+): cabinets, thrown darts and the placement ghost
np_npchandlerRequired: the house regular you can play against
np_adminPermission nodes, live settings, the audit log, staff tools and the server theme

Also detected: np_drugs and esx_status for the drunk sway, np_character for names on standalone and np_discord for logs and staff roles. The Lua suites play whole matches against fakes of every framework, inventory and sibling, but np_darts has not run on a live server yet, so the dart rotation and the chalkboard position may need a config tweak.

Installation

The tables are created on the first start. You build the NUI once.

  1. Put the resource in resources/ as np_darts and build the NUI once (Node 18+):
    cd np_darts/web && npm install && npm run build
  2. Items: np_inventory needs nothing. For the ESX inventory run items/esx_items.sql, for ox_inventory or qb-inventory add the entries from items/.
  3. Start it after its dependencies:
    ensure oxmysql
    ensure es_extended
    ensure np_inventory
    ensure np_payments
    ensure np_hud
    ensure np_phone
    ensure np_npchandler
    ensure np_prophandler
    ensure np_darts
  4. Give the pubs an owner in shared/config_pubs.lua, for example owner = { job = 'yellowjack', grade = 2 }. Then walk up to the board in the Yellow Jack.

For your own scripts

Server exports for ratings, stats, matches, boards and gear, and local server events fired after the server applied each dart, visit and match.

-- a league night: start a staked 501 match on board 1
local matchId, err = exports.np_darts:StartMatch('yellowjack:1', {
  mode = 'x01', start = 501, legs = 5, doubleOut = true, stake = 200,
  players = { srcA, srcB } })

-- a bar script: drinks sold during darts count as darts revenue
exports.np_darts:AddPubRevenue('yellowjack', 12)

-- your own channel for maximums
AddEventHandler('np_darts:180', function(e)
  print(('180 at %s'):format(e.pub))
end)
  • Server: GetPlayerDartsRating, GetPlayerStats, AddDartsXP, EndMatch, GetBoards, GetIntoxication, GiveDartSet.
  • Events: matchStart, dart, visit, 180, checkout, matchEnd, nineDarter, leagueResult and cupWon.
  • Client: IsPlaying, IsAiming, IsSpectating, OpenProfile, OpenLoadout and OpenOwnerPanel. Boards and live matches are state bags.

Questions

Which frameworks does it support?

es_extended first, then qbx_core and qb-core, detected at start. Without a framework it runs standalone and uses np_character for names when it runs.

Do I need np_inventory?

No. np_inventory is the first target: dart sets and flights register on their own and keep their build in metadata. The ESX inventory, ox_inventory and qb-inventory work with the item files in items/.

Where are the dartboards?

The map's own cabinets in the Yellow Jack, the Lost MC clubhouse, Tequi-la-la and the MC clubhouse interiors. Owners and staff place more with /darts place <pub> or "Add a board" in the owner panel; placed boards are stored in the database.

How does drinking change the throw?

The sway uses the highest of np_drugs blood alcohol, the ESX drunk status, the player's drunk state bags and GTA's drunk walk. The first pint takes the edge off ("Dutch courage"), more widens the sway. Coffee and water steady the hand for a while.

Does it use ACE permissions?

No. Staff tools check the np_admin nodes np_darts.admin, .place, .owner and .league. Without np_admin, the console, the fallback identifiers, the ESX admin groups and np_discord staff roles count.

Has it been tested on a live server?

Not yet. The Lua suites boot the real files against stubbed natives and fake siblings and play whole matches with escrow, payouts, refunds, forfeits, leagues and cups, and every screen has a browser mock. The dart prop rotation, the chalkboard position and the feel of the sway may need a config tweak on your server.

Is it in German?

English and German, for the Lua messages, the NUI and the Oche app.

Works well with

Build once, ensure it, step up to the oche.

Installation, every config key and every export are in the docs.

Install np_darts