Skip to content

np_darts v1.0.0 ​

Pub darts. You step up to the real dartboards in the Yellow Jack, the Lost MC clubhouse or Tequi-la-la (or boards owners place in their bars), fight a swaying reticle, your breath and your pints, and play 501, Cricket, Around the Clock or Killer against whoever is in the room, against the house regular, or alone for practice. Stakes are held in escrow, dart sets are inventory items with real trade-offs, every dart feeds your stats and heatmap, and pubs run leagues and cups through the Oche phone app.

It uses the Nimbus UI look of np_hud and np_phone: grey glass, glossy squircle tiles, and colour only where it means something. It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory, qb-inventory, the default ESX inventory or no inventory. es_extended with np_inventory is the first target. Hard dependencies are oxmysql, np_prophandler 1.1.0+ and np_npchandler. Staff rights are np_admin permission nodes, with a fallback to identifiers, ESX admin groups and np_discord roles. No ACE anywhere.

Throwing

Visit result Scoreboard (TAB)
Visit Scoreboard
Cricket Killer
Cricket Killer
Around the Clock Lobby at the board
Around the Clock Lobby
Dart case Profile
Loadout Profile
Pub owner panel A challenge
Owner panel Invite
The end of a match Spectating
End Spectate
Liquid Glass Chalkboard on the pub wall
Liquid Glass Chalkboard
Oche: league Oche: cups Oche: challenges
League Cups Challenges

The screenshots come from the browser mock at 1920 × 1080 (see Development). The UI ships in English and German.

Built on the native darts minigame ​

GTA V ships its own darts minigame (the Yellow Jack and the clubhouses). np_darts is a faithful rebuild on those assets, then improved: the board, the darts, the animations, the cameras, the sounds and the voices are the game's own; the throw model, the rules, the money and everything social are new and run on the server.

Kind Native assets reused
Props prop_dart_bd_cab_01 (the map's cabinets, used where they stand), prop_dart_bd_01 (bare board), prop_dart_1 / prop_dart_2 (your darts / the opponent's)
Boards and interiors The map's own cabinets at the Yellow Jack, the Lost MC clubhouse and Tequi-la-la, plus the two Bikers DLC MC clubhouse interiors (shipped disabled, they need the interior loaded)
Animations mini@darts (enter, aim with up / down / left / right variants, throw overlay / underlay, wait, lose, retrieve neutral / win / fail), anim@amb@clubhouse@mini@darts@ (same clips on clubhouse boards), celebrations anim@mp_player_intcelebrationmale@thumbs_up and …@slow_clap
Cameras The darts script's aim, wide and reaction offsets (aim camera 1.73 m from the board, FOV by aspect ratio) with SHAKE_CAM HAND_SHAKE
Board geometry Bullseye = cabinet origin, the oche 2.337 m in front at floor level, the waiting spot beside it
Audio Script bank SCRIPT\DARTS: DARTS_THROW_DART_MASTER, DARTS_HIT_BOARD_MASTER, DARTS_HIT_WIRE_MASTER, DARTS_HIT_BULLSEYE_MASTER, DARTS_HIT_DART_MASTER, DARTS_HIT_WALL_MASTER, DARTS_SCORE_DOUBLE_MASTER, DARTS_SCORE_TRIPLE_MASTER, DARTS_SCOREBOARD_MASTER; frontend CAM_PAN_DARTS / LOOSE_MATCH (HUD_MINI_GAME_SOUNDSET), TENNIS_POINT_WON (HUD_AWARDS)
Speech The darts regulars' contexts (DARTS_180, DARTS_140, DARTS_BULLSEYE, DARTS_BUST, DARTS_MISS_BOARD, DARTS_WIN, DARTS_LOSE, …) and the crowd's GAME_GOOD_OTHER, GAME_BAD_OTHER, GAME_HECKLE
Peds a_f_m_salton_01, the Yellow Jack local, as the house regular, voice A_F_M_SALTON_01_WHITE_FULL_01
Drunk state GTA's drunk movement clipsets (move_m@drunk@slightlydrunk, …@moderatedrunk, …@verydrunk, move_m@drunk@a, move_f@drunk@a) as a fallback intoxication source
Blip Sprite 103 (the darts blip) for pubs

Every name sits in Config.Native and can be swapped (see Configuration). Rockstar's own launcher_Darts and darts scripts are terminated next to np_darts boards, so the two never fight over a board.

What is new on top: a swaying reticle the server evaluates, hold breath and a release window, a regulation board model with wire bounce-outs and sisal wear, four game modes, escrowed stakes, dart sets with parts, stats and a heatmap, ratings, perks, leagues, cups, weekly challenges, a chalkboard lobby, spectators, a pub owner panel and the Oche app. The on-screen HUD is Nimbus UI (NUI), not the native minigame HUD.

At a glance ​

  • Sway, not a laser. A slow figure-of-eight with a little tremor, a trail and a grouping ring. The path comes from a per-dart seed the server hands out, so what you watch is what the server evaluates. See Playing.
  • Hold breath (RMB) for about 3 s of calm, then a worse shake. Release window (hold LMB): a cursor runs over 12 pips; early drops the dart low, late sends it high.
  • The sway breakdown shows why your hand shakes: stance, pints, dart set, perks, nerves, arm fatigue, the pub's lamp, assisted aim.
  • Games: 501 / 301 / 701 with double-in / double-out and legs, Cricket (cut-throat option), Around the Clock (multiples option), Killer for 3–8 players, practice, and the house regular in three strengths. See Game modes.
  • Stakes in escrow through np_payments: every player confirms a checkout sheet, the winner takes the pot minus the pub's capped rake, a crash refunds every held stake. Board rental per hour. See Stakes, escrow & rental.
  • Dart sets as inventory items with barrel weight, grip, shaft, flight and flight wear; house darts for everyone, a pro shop at pubs. See Dart sets & the dart case.
  • Stats & progress: averages, first 9, checkout %, a heatmap with insights, milestones, ratings, XP, levels and perks. See Stats, ratings & perks.
  • Pubs: a chalkboard lobby on the wall (queue, live matches, house records, the next nights), an owner panel (boards and sisal wear, revenue, house rules, nights, staff, balance) and an in-game placement tool. See Pubs, boards & the owner panel.
  • Leagues, cups and weekly challenges, and the Oche app in np_phone with your live score in the Dynamic Island. See Leagues, cups & challenges and Oche app.
  • Spectating (G) with a mini scoreboard, cheer (H) and boo (J); spectators add a little crowd pressure.

How it works ​

  • Server-authoritative. The server decides the throw model, where each dart lands, the score and the money. The client sends inputs only: the aim point, the time since the dart started, how long LMB and RMB were held.
  • Boards and pubs come from shared/config_pubs.lua plus boards placed in game (stored in the database). Their live state is replicated through GlobalState, so players, spectators, late joiners, the chalkboard and the phone all read the same thing.
  • Profiles belong to the character (cid): stats, heatmap, ratings, XP, perks, loadout and flair, cached and written back to np_darts_players.
  • Money is a checkout sheet in np_payments when it runs, else the framework account. Every held stake is a row in np_darts_escrow; open rows are refunded at start, money owed to offline players is paid when they next load.

Quick example ​

lua
-- server: a bar script pays a round for every 180 and starts an exhibition match
AddEventHandler('np_darts:180', function(e)
  if e.src then exports.np_inventory:AddItem(e.src, 'beer', 1) end
end)

local matchId, err = exports.np_darts:StartMatch('yellowjack:1', {
  mode = 'x01', start = 501, legs = 3, doubleOut = true,
  players = { source, { ai = 'shark' } },
})

Next steps ​