Skip to content

Bars, tables & the owner tablet ​

A bar groups tables, house rules and the money they earn. Bars come from Config.Bars (see Configuration → Bars); other resources add tables at runtime with RegisterTable.

Tables ​

Kind How
Vanilla (world = true) Binds to the GTA pool table prop found within 3 m of coords (any model in Config.Models, or the one in model). The vanilla balls, triangle and cue lying on it are hidden while players are near. Shipped: the Yellow Jack Inn and Tequi-la-la tables
Spawned (model, coords, heading) The server registers the prop as an np_prophandler streamed prop (not networked); it spawns on every client within 80 m, frozen. For player-owned bars and custom MLOs
Runtime exports.np_billiards:RegisterTable({ id, bar?, barLabel?, society?, label, model, coords, heading }), removed with RemoveTable(id) (not while a match runs)

A table is open, busy (a match runs), reserved (a cup call or a scheduled challenge) or closed (cloth recovery, or closed by staff). Bars with blip = true get a Bar blip labelled <bar> · Billiards.

Players can queue for a busy table in the lobby; the first in line gets a toast when the match ends.

Owners and referees ​

lua
owner = { job = 'yellowjack', grade = 3 },     -- owner tablet, house rules, cloth, cups
referee = { job = 'yellowjack', grade = 1 },   -- pause and void matches at this bar
society = 'yellowjack',                         -- default: owner.job
  • Owners have the job with at least that grade (or the framework's boss flag). Staff with np_billiards.owner or np_billiards.admin count as owners of every bar.
  • Referees have the referee job and grade. Owners are referees too; staff with np_billiards.referee referee every table.
  • Without an owner the house runs the bar: fees and cuts are only tracked in the revenue log.
  • Fees, the house cut, bet rake and cup rake go to the society account (esx_addonaccount society_<job> on ESX, qb-banking / qb-management or Renewed-Banking on qb and qbx). See Bridges → Society.

The owner tablet ​

/poolroom, or Owner tablet in the np_menu context menu on a table, opens the tablet of the nearest bar you manage (or your first one). Referees see it too, without the owner-only actions.

Owner tablet

Section What
Tables Every table of the bar with live balls, status, cloth, queue, tonight's income, the current match (players, stake, mode, score)
Revenue The last 7 days as a chart (cup nights marked), the week's fees, house cut, rake, cup income and upkeep, and the change in fees against the week before; the society balance
House rules Fee, fee split, house cut, stake limit, race, shot clock, call pocket, ball in hand, 8 on the break, three fouls, straight pool points, drinks, heckling, side bets, aim guide, ranked. Saved per bar on top of the config
Cups Create, open and start cups
Referees Referees of the bar who are on duty right now

Owner input is clamped: the house cut 0–10 %, the fee 0–1,000, the race up to Config.Match.maxRace, the shot clock 0–120 s, straight pool points 10–150. Changes apply to the next match and are written to the audit log.

Cloth ​

Every rack wears the cloth by Config.Cloth.wearPerRack (0.25 %). Worn cloth is slower: at 0 % rolling resistance is × 1.5 (maxSlow), and the server's physics uses it. The lobby and the tablet show the cloth.

Recover cloth on the tablet costs Config.Cloth.recoverCost ($400), paid from the bar society (or from the owner's account when the society can't pay), sets the cloth to 100 % and closes the table for recoverClosedMinutes (60). Not while a match runs.

Referee tools ​

From the tablet's table list:

Action What
Pause Stops the shot clock while it is someone's turn (aiming or placing); press again to resume with the time that was left
Void Ends the match without a winner: every stake and bet is refunded, no ELO moves. Logged as void

Staff do the same from anywhere with /pooladmin void and the np_admin actions.