np_billiards v1.0.0 ​
Pool in the bars of Los Santos, played on GTA's own tables. Walk up to the table in the Yellow Jack Inn or Tequi-la-la, challenge whoever is standing around, put money in escrow and play 8-ball, 9-ball or straight pool. The server runs a deterministic ball physics engine and referees every shot; every client replays the same shot and snaps to the server's result. Bar patrons watch, react and bet into a pari-mutuel pool, bar owners earn from table fees and host cups, and the Pool League app in np_phone keeps the standings.
The menus, the aiming HUD and the phone app use the Nimbus UI look of np_hud and np_phone: frosted grey glass, glossy squircle tiles, Quicksand, and colour only where it means something (money, a foul, your group, a warning). It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory, qb-inventory, the ESX inventory or no inventory. es_extended with np_inventory is the first target. Hard dependencies are oxmysql and np_prophandler 1.1.0+. Staff rights are np_admin permission nodes. No ox_lib, no ACE anywhere.

| Ball in hand | Shoulder cam |
|---|---|
![]() |
![]() |
| Opponent at the table | Spectating & side bets |
![]() |
![]() |
| Table lobby | At the table |
![]() |
![]() |
| Cue case | Profile & rank |
![]() |
![]() |
| Owner tablet | Match result |
![]() |
![]() |
| Liquid Glass | |
![]() |

The screenshots come from the browser mock at 1920 × 1080 (see Development). The UI ships in English.
Built on GTA's own pool tables ​
GTA V places pool tables in its bars but never shipped a pool minigame: there is no Rockstar pool script, no stroke animation and no ball sound bank. np_billiards is a faithful rebuild on the game's native pool assets: it binds to the vanilla tables where the map already has them, plays with GTA's own ball and cue props, uses vanilla animations for holding the cue, leaning over the rail, chalking and the crowd, GTA's HUD soundsets and script cameras. On top of that it adds what the game never had: a deterministic server-side physics engine with spin, a referee for three game modes, stakes in escrow, side bets, ELO, owned cues and a phone app.
Every asset name is in config/natives.lua and config/tables.lua, checked against DurtyFree's gta-v-data-dumps and
the FiveM native reference. Swap any name there if a server streams other props.
| Kind | Native assets reused |
|---|---|
| Tables | prop_pooltable_02, prop_pooltable_3b (playfield, ball plane and radius measured on these props) |
| Vanilla tables | Yellow Jack Inn 1992.803, 3047.312, 46.22865 · Tequi-la-la -574.17, 288.834, 79.1766: bound in place, nothing is spawned |
| Balls | prop_poolball_cue, prop_poolball_1 … prop_poolball_15. The vanilla balls, prop_pool_ball_01, prop_pool_tri and prop_pool_cue lying on a bound table are hidden through np_prophandler hideWorldModel (keepScriptObjects) while np_billiards owns it |
| Cue | prop_pool_cue (in the right hand, bone 28422, between shots; on the aim line while aiming; the hand cue is an np_prophandler synced attachment, so the bar sees it) |
| Animations | anim@weapons@melee_2h@pool_cue grip_idle (holding the cue) · amb@prop_human_bum_bin@base base (leaning over the rail) · amb@code_human_wander_idles@male@idle_a idle_a_wristwatch (chalking) · anim@mp_player_intcelebrationmale@raise_the_roof / @face_palm (win / lose) |
| Crowd | anim@mp_player_intcelebrationmale@slow_clap, anim@mp_player_intupperface_palm, anim@amb@clubhouse@bar@drink@idle_a, anim@arena@celeb@podium@no_prop@ crowd_point_a_1st, amb@world_human_cheering@male_a |
| Sounds | HUD_FRONTEND_DEFAULT_SOUNDSET (SELECT, BACK, NAV_LEFT_RIGHT, ERROR), HUD_MINI_GAME_SOUNDSET (CONFIRM_BEEP, 5_SEC_WARNING, TIMER_STOP, MEDAL_UP), HUD_AWARDS (WIN, LOSER) |
| Cameras | DEFAULT_SCRIPTED_CAMERA through CREATE_CAM_WITH_PARAMS, SET_CAM_ACTIVE_WITH_INTERP, POINT_CAM_AT_COORD; SHAKE_CAM with DRUNK_SHAKE for the drink swim |
| Map | Blip sprite 93 (Bar) for every bar with blip = true |
What the game doesn't have is built from its parts: the stroke is the cue prop sliding along the aim line while the ped leans over the rail, and ball clicks, cushions, pockets and the cue tock are synthesised in the NUI.
At a glance ​
- GTA's own tables. Configured tables bind to the vanilla props in the interiors, or spawn a prop anywhere
(player-owned bars, custom MLOs,
RegisterTable). A floating marker shows status, fee, open challenges and the queue;Eopens the lobby. See Bars, tables & the owner tablet. - Deterministic physics. Sliding and rolling friction, follow, draw and stun, side spin with squirt, throw, english off the cushions, masse on elevated strokes, cushion jaws, pocket drops and cloth wear, in fixed 5 ms steps that give the same result on the server and every client.
- The server is the referee for 8-ball (called pocket, groups, the 8, ball in hand anywhere or in the kitchen), 9-ball (lowest ball first, golden break, three-foul rule) and straight pool (14.1, re-rack at 14, race to N points). Every shot is logged with its ball, cut angle, spin and rails. See Playing a match.
- Stroke, don't click. Overhead cam over a 2D table or a shoulder cam with the guide drawn in the world; ghost ball with object and cue ball stubs; WASD spin on a real cue-ball face; hold the mouse, pull back and push through.
- Drinks make it a bar. Blood alcohol from np_drugs, esx_status
drunk, a state bag or an export sways the aim; one drink steadies, from five the camera swims. - Stakes in escrow, fees to the bar. Both stakes are taken when the challenge is accepted
(np_payments when it runs), held in
np_billiards_escrowand paid out minus the house cut. A restart refunds anything still held. See Stakes, fees & escrow. - Spectators within 8 m get the HUD, cycle cameras, react with vanilla animations and bet into a pari-mutuel pool (winner, "next ball down is a stripe", hill-hill). See Spectating & side bets.
- ELO overall and per mode, tiers Fish → Hustler → Shark → Legend, six-week seasons, style stats, rivals and achievements. See Rating, profile & achievements.
- Cue case. House cues everywhere; owned cues, shafts, chalk and gloves are inventory items with metadata (serial, tip wear, history). See Items & the cue case.
- Bar owners run tables, cloth, revenue, house rules and cups from the owner tablet; referees pause or void matches.
- Pool League app for np_phone: standings, live cup brackets, remote challenges, open tables nearby and watching a live match. See Pool League app.
How it works ​
- Inputs only. The shooter's client sends the aim angle, power, tip offset, elevation, call and ball-in-hand spot together with a one-shot turn token. The server checks the turn, the phase and the distance to the table, adds the stroke error (cue steadiness, drinks, heckles) and simulates the shot.
- One simulation, many replays. The server sends the shot record (start positions, strike, physics parameters, final positions, outcome) to everyone at the table. Each client re-simulates the strike from the same start, animates the props and the 2D table, then snaps to the server's final positions.
- Money. Fees go to the bar. Stakes, bet and cup entries are only held: every dollar is paid to a winner, kept as the bar's cut, or refunded. Offline winners are paid at their next login.
- Persistence. Ratings, profiles, matches (with a hash of the shot log), table cloth, owner house rules, revenue,
escrow, bets and cups live in seven
np_billiards_*tables.
Quick example ​
-- server: a bar job pours a round, a league script reads the rating, an event script logs the result
exports.np_billiards:SetDrinks(src, 2, 1800) -- two drinks for 30 minutes
local r = exports.np_billiards:GetPlayerPoolRating(src, '9ball')
if r then print(('%s ELO, %s'):format(r.elo, r.tier)) end
AddEventHandler('np_billiards:matchEnded', function(result)
if result.void or not result.winner then return end
local w = result.players[result.winner]
print(('%s won %d-%d at %s and took $%d'):format(w.name, result.score[1], result.score[2], result.bar, result.payout))
end)










