np_golf
Golf at the Los Santos Golf Club, rebuilt on the assets GTA V's own golf minigame ships: the real nine holes, the swing animations, Rockstar's flyover cameras, the ball tracer and the sounds. On top of that a 3-click swing the server simulates, putting with green reads, a shared tee sheet, player caddies and betting through server escrow, so nobody has to trust anyone.
- Version
- 1.0.0
- Frameworks
- ESX, qbx, qb, standalone
- Dependencies
- oxmysql, np_npchandler, np_prophandler, OneSync
- 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

Taken from the NUI in the browser at 1920×1080, with mock data.
What's in it
The client sends only the inputs. The server checks the turn, simulates the ball and pays every bet from validated scores.
GTA's own course
- The real nine holes (par 36) with their tees, pins, water hazards and the course boundary. 18 holes play the nine twice.
- GTA's
mini@golfswing clips, Rockstar's hole flyovers, the golf ball tracer, the golf sounds and the golf minimap. - Distances on GTA's golf scale, so real club carries fit the course.
The swing
- 3-click meter: start, power, then land in the snap zone. A centred snap is Perfect, past 100 % is over-swing.
- Clubs from your bag, draw, straight or fade, three lofts and aim, previewed with the same physics the server runs.
- Server ball sim with wind, lie, elevation, shape, roll per surface and chip-ins.
On the green
- Hold to draw the putter back, release to stroke, on a meter scaled to the putt.
- Green reads: a slope grid, the contour card and a break line. Green speed changes daily. Gimmes in match play.
Clubhouse and formats
- A shared tee sheet in 10-minute slots: public or private groups, invites, house rules and green fees.
- Stroke play, match play, skins, Stableford and best ball 2v2, gross or net, with a WHS-style handicap index.
- Memberships, twilight rounds, the range, golf carts and stats per round.
Betting through escrow
- Stakes are held at check-in and paid by the server: skins, match play, Nassau, closest to the pin, long drive, Sandy, Greenie and prop bets.
- A spectator odds board with limits, a daily cap and take a break. Whatever isn't won comes back.
Works with your server
- ESX and np_inventory first, also qbx, qb, ox_inventory, qb-inventory or the ESX inventory.
- Caddies as a player job, and the Fairway app in np_phone.
- Staff permissions through np_admin, no ACE. Exports and server events for your scripts.
A closer look
Address, aim, three clicks
Walk to your ball and press E. The ped takes GTA's stance, and the flyover plays at every new hole (TAB replays it).

- Club and shape: Q and E pick a club from your bag, the mouse wheel sets draw, straight or fade, Shift and the wheel the loft. A and D aim.
- Click 1 starts the backswing, click 2 sets the power.
- Click 3 must land in the snap zone: early pulls, late pushes, centred is Perfect (+3 %). Past 100 % goes further and sprays wider.
- The server re-computes power and snap from the click times, simulates flight and roll and sends the path every client animates.
Putting and lies
The white zone on the putting meter is 0 to 2 ft past the cup. R reads the green.

- Green read: a slope grid over the green, the top-down contour card and a partial break line, longer with a level 5 caddie.
- Green speed (Stimp) changes daily. Match-play gimmes with G and an auto-gimme radius.
- Lies from the server's course polygons, refined by the ground material: green, fairway, rough, bunker. Water is a drop plus one, out of bounds stroke and distance.
- Turn order like real golf: honours on the tee, then whoever is away, or ready golf. A shot clock and pick up after double par.
Tee sheet, formats and handicaps
Book at the pro shop desk with E. Slots are shared by the whole server, and a slot is held for five minutes.


| Format | How it is scored |
|---|---|
| Stroke play | Every shot counts, lowest total wins |
| Match play | Win holes, not strokes. Gimmes allowed |
| Skins | Each hole has a pot, ties carry over |
| Stableford | Points per hole, a blow-up hole only costs 0 |
| Best ball 2v2 | The better score of each pair counts |
- Handicaps: strokes by stroke index, gross or net, and a WHS-style index from the best 8 of the last 20 rounds.
- House rules: handicaps, gimmes, mulligans, spectators and carts. Green fees with member (−30 %) and twilight (−25 %) prices.
- Stats: fairways, greens in regulation, putts, perfect snaps, drives, sand saves, scrambling and records.
Betting through escrow
Fees are spent, stakes are only held. Every in-group dollar is paid to a winner or given back.

| Part | How it works |
|---|---|
| Stakes | Held at check-in (Pay & lock), paid by the server from validated scores |
| Bets | Skins with carry-overs, match play, Nassau, closest to the pin, long drive, Sandy and Greenie |
| Prop bets | Up and down, par or better, one putt: propose, counter, accept within 40 s |
| Odds board | A Monte Carlo over the holes left, closed while a ball is in the air. Players and their caddies can't bet on their group |
| Restarts | A per-pool ledger, leftover holds are refunded at start, offline winners are paid at their next login |
The bag, caddies and carts
Clubs, balls and bags are inventory items. Without a bag the club rents you a 14-club set and range balls.


- Bag: a gapping chart, stock, cavity, blade and tour heads with their trade-offs, Tour X, Distance Soft and Glow balls, club wear in item metadata.
- Golf carts from the cart barn with a paid seat (GTA's
caddy).
- Caddie as a player job: go on duty at the pro shop, get hired at checkout for a fee and a tip on winnings, call clubs, place the power target and send reads.
- Perks unlock with level and ratings. No caddie on duty: a club NPC caddie walks with you and gives level 1 tips.
The Fairway app
With np_phone running, Fairway is in the phone's app store, and your round sits in the Dynamic Island ("H5 · −2").



- Tee times: your next round and the open groups to join.
- Live: the leaderboards of every round on the course.
- Odds: the spectator odds board with the bet slip.
- Me: the handicap trend, season stats, the daily bet limit and take a break.
- Push notifications for invites. Without np_phone they come as np_hud toasts.
Set it up
Compatibility
ESX with np_inventory is the first target. np_npchandler and np_prophandler are required. Every other integration is optional, detected with GetResourceState and called through pcall. No ox_lib, no ACE.
| Inventory | Items |
|---|---|
| np_inventory | Registered at runtime. The golf bag is a container read on the server, club wear in metadata, a busy lock while you address the ball |
| ESX inventory | Import sql/esx_items.sql. A golf bag counts as a full set of clubs |
| ox_inventory, qb-inventory | Add the six items to your items file |
| No bag | The club rents a 14-club set and range balls |
| Sibling | What np_golf does with it |
|---|---|
| np_payments | Green fees and memberships at the checkout sheet, stake holds and refunds, caddie fees to the caddie |
| np_hud | Toasts with actions for invites, prop bets and gimmes, prompts, the green-read progress bar |
| np_phone | The Fairway app, push notifications and the Dynamic Island |
| np_menu | Invite to golf and watch their round on players |
| np_admin | Permission nodes, live settings, the audit log, staff tools and the server theme |
| np_drugs | Blood alcohol widens the swing |
Also detected: np_discord (aces, big bets and staff actions in a log channel) and np_character (names on standalone). Without a framework np_golf runs standalone. Needs OneSync, because the server checks player positions.
Installation
The tables are created on the first start. You build the NUI once.
- Put the resource in
resources/asnp_golf. - Build the NUI once (Node 18+),
web/distis not committed:cd web && npm ci && npm run build - Items: np_inventory needs nothing. For the ESX inventory import
sql/esx_items.sql, for ox_inventory or qb-inventory add the items from the docs. - Start it after its dependencies:
ensure oxmysql ensure es_extended # or qbx_core / qb-core ensure np_inventory # optional ensure np_payments # optional: fees and stake holds ensure np_hud # optional ensure np_phone # optional: the Fairway app ensure np_npchandler # required ensure np_prophandler # required ensure np_golf - Staff get the np_admin nodes
np_golf.admin,np_golf.marshalandnp_golf.survey. Then book a tee time at the pro shop desk.
For your own scripts
Server exports for handicaps, profiles, rounds, groups and the odds board, and server events for every hole, round, ace and settled bet.
-- a club tournament: no check-in, no fees
local groupId = exports.np_golf:CreateGroup(hostSrc, { public = false, format = 'stroke', holes = 9 })
exports.np_golf:AddToGroup(groupId, otherSrc)
local ok, roundId = exports.np_golf:StartRound(groupId)
-- open the spectator odds board for it
exports.np_golf:OpenBetsMarket(roundId, 'winner')
-- celebrate aces in your own channel
AddEventHandler('np_golf:ace', function(src, hole, roundId)
print(('hole in one on %d'):format(hole))
end)- Server:
GetHandicap,GetProfile,IsPlaying,GetRoundState,GetLiveRounds,EndRound,GetWind. - Events:
holeCompleted,roundFinished,aceandbetSettled. - Client:
IsPlaying,IsAddressing,GetRoundState,IsOpenandOpenClubhouse.
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: the items register on their own and the golf bag is a container. The ESX inventory, ox_inventory and qb-inventory work with the item lists from the docs, and without any bag the club rents you a set.
Can players cheat a bet?
The client only sends its inputs with a one-shot token. The server checks the turn, the distance to the ball, the club and the timing, simulates the shot and pays from validated scores. Stakes are held in escrow, never passed between players.
Does it need np_phone or np_payments?
No. The Fairway app needs np_phone; without it invites come as toasts. With np_payments fees go through its checkout sheet and stakes are held with Charge and Refund; without it the framework's money is used.
Does it use ACE permissions?
No. Staff tools check the np_admin nodes np_golf.admin, np_golf.marshal and np_golf.survey. Without np_admin the console, the fallback identifiers and the ESX admin groups count.
Has it been tested on a live server?
The server and client suites run in plain Lua against stubbed natives, and every screen has a browser mock. Some values are tuned from community reproductions, like the stance offsets per club and the hole-preview camera, and can be adjusted in shared/config/natives.lua if a swing looks off.
Can I measure the greens on my server?
Yes. Green slopes come from the config until staff with np_golf.survey stand on a green and run /golfsurvey <hole>, which samples the real ground and stores the slope.
Is it in German?
English and German, for the Lua messages, the NUI and the Fairway app.
Works well with

Build once, ensure it, tee off.
Installation, every config key and every export are in the docs.