Playing a match ​
At the table ​
Every table has a floating marker within 12 m: its status (open, in use, reserved for a cup or a scheduled challenge,
closed), the fee, the table size, open challenges and the queue. Within 2.2 m the prompt E Rack 'em up shows; E
(or Play pool in the np_menu context menu on the table prop) opens the lobby.

The lobby ​

| Choice | What |
|---|---|
| Game | The modes this bar offers (house.modes): 8-ball, 9-ball, straight pool |
| Opponent | Players within 15 m with distance, ELO, head-to-head and whether they are a regular here; or open table (the first taker plays) |
| Race | Race to N racks, up to Config.Match.maxRace. Straight pool is a race to house.raceTo14 points |
| Stake | Up to the bar's stakeMax. The lobby shows the maths: stake × 2 − house cut = winner takes |
| House rules | Fee, shot clock, call pocket, ball in hand, 8 on the break, drinks, heckling, side bets, aim guide, ranked: shown before anyone pays |
| Practice | Solo, no stakes, no fee, one rack at a time |
| Queue | Join the queue of a busy table; the first in line gets a toast when it frees up |
A challenge to a player reaches them as an np_hud toast with Accept (Y) and
Decline (N) (without np_hud, an invite card in the NUI with the same keys). It expires after
Config.Match.challengeTimeout (60 s). Each player has one pending challenge at a time.
When the challenge is accepted both players must be at the table: the stakes go into escrow, the fee goes to the bar, and the match starts. If a player can't pay, nothing is taken from anyone.
Aiming ​

While it is your shot the NUI has the mouse and keyboard.
- Overhead cam (default): a straight-down script camera over the playfield with a 2D table on top. Aim follows the
mouse;
Shiftaims fine,←/→nudge. - Shoulder cam (
C): low behind the cue ball; drag with the right mouse button to aim. The guide is drawn in the world, the HUD keeps spin, power and the log. - Ghost ball where the cue ball will make contact, with short object ball and cue ball stubs. Their length
follows the cue's guide stat; the bar's
guiderule can shorten them (short), show only the ghost ball (ghost) or hide everything (none). - Spin with
W A S Don a cue-ball face (follow, draw, side); the red rim is the miscue zone.0centres it.Q/Elower and raise the cue (elevation: masse and jump). - Call pocket (
V, then click a pocket) where the rules need it; safety (X) calls a safety. - Stroke, don't click. Hold the left mouse button, pull back and push through: the push speed is the power,
sideways drift is angle error.
Pswitches to the assisted stroke (click, hold, release). Pips show the power; orange pips mean risky. - Drinks draw an ellipse around the ghost ball that breathes with the sway. See Drinks.

The ped walks to the shooting side and leans over the rail; the cue prop slides along the aim line. Spectators and your opponent see your aim live (every 250 ms).
The shot ​
The client sends only your inputs with the turn token. The server checks that it is your turn and that you stand within 4 m of the table, adds the stroke error, simulates the shot and judges it. Everyone at the table replays the same shot on the real props and the 2D table, then snaps to the server's result.
- Shot log on the left: every shot with its ball, pocket, cut angle, spin, rails and tags (safety, combo, miscue).
- Foul banner names the player, the rule in plain words and the consequence.
- Rule phases bottom left (8-ball: break → open → groups → on the 8 → rack). Hover a phase for its rule card.
- Replay (
R): the last shot at half speed, re-simulated from the shot record. - Moments (golden break, 8 on the break, break and run) get a banner and a sound.
| Foul code | Meaning |
|---|---|
scratch |
The cue ball went in a pocket |
no_contact |
The cue ball touched no ball |
wrong_ball |
The first ball hit was not a legal ball |
no_rail |
Nothing went in and no ball touched a cushion after contact |
illegal_break |
Not enough balls reached a cushion on the break |
clock |
The shot clock ran out |
After a foul the next player has ball in hand: a ghost cue ball follows the mouse on the felt, can't overlap a
ball and stays in the kitchen when the bar says so (ballInHand = 'kitchen'). Click to place it.

Game modes ​
| Mode | Rules |
|---|---|
| 8-ball | Open table after the break, groups (solids / stripes) on the first legal pot. Call the pocket (callPocket). The 8 on the break wins or is re-spotted (eightOnBreak). Potting the 8 early, in the wrong pocket or with a foul loses the rack. An illegal break (nothing potted, fewer than four balls to a cushion) passes the break to the opponent |
| 9-ball | Hit the lowest ball first; any legal pot continues. The 9 wins the rack, on the break a golden break. Three fouls in a row lose the rack (threeFoul). The break must pot a ball or drive four balls to a cushion |
| Straight pool (14.1) | Called balls, one point each; −1 for a foul, −15 extra for three in a row, −2 and a re-rack for an illegal break. With one ball left the 14 are re-racked with the apex empty. First to raceTo14 points (50) wins |
Racks alternate the break (Config.Match.breakAlternates); with false the winner breaks.
Shot clock, extensions and leaving ​
- The shot clock (bar setting, 30 s; the break gets 15 s more) runs out as a
clockfoul.Tuses your one extension per rack (+30 s). Backspace(orEsc) asks to leave. Leaving a match forfeits it, stakes included. Dying or logging out on ESX leaves too.- Walking more than 30 m away for 20 s forfeits.
- A crash gives a 90 s rejoin window (
rejoinSeconds): load the same character and you take your seat back. After that the match is forfeited (disconnect).
Drinks ​
GTA has no native to read how drunk a ped is, so np_billiards asks the server's systems and takes the highest:
- np_drugs: blood alcohol (
GetBodyState(src).bac) ÷Config.Drunk.bacPerDrink(0.3 ‰); - esx_status
drunk(esx_optionalneeds) ÷esxPerDrink; - the state bag
Player(src).state.drunk(0..1 = share ofmaxDrinks, or a number of drinks),.alcoholor.drinks; SetDrinksfrom a bar or consumables resource.
One drink steadies the stroke (× 0.9, "liquid courage"). From the second every drink adds swayPerDrink (0.35°)
of aim error; from five the camera swims (DRUNK_SHAKE). A heckle from the crowd adds a short sway pulse. Bars
switch it off with drinksAffectAim = false.
The end ​
The first to the race wins. Both players see the result with the score, the payout and the ELO change; the winner plays the win animation, the loser the face palm.
