Bowling
Ten-pin bowling for any bowling alley map: staff place the lanes in game. Nothing in your map is edited: pins and balls are local props each client spawns on top of the lanes.
#Install
ensure GR1M_Placer
ensure GR1M_Bowling_anims # assets only, start with the server, never restart mid-session
ensure GR1M_Bowling
Needs ox_lib, ox_target, qbx_core, GR1M_Placer. Business money goes to the business job's society account (GR1M_UltraBoss, or GR1M_Bridge banking). Full restart the first time (new streamed clip).
#Set up (in game)
/bowladmin(acegr1m.bowling.admin, orcommand).- Settings: check the alley name, business job and price, Save, then Make the business job.
Hire staff and set the owner with your job or boss-menu script.
- Counter & seats: place the front counter, then sit spots (stand on the floor in front of a
bench or pod seat, facing away from it).
- Lanes: Add a lane, then place its Foul line (middle of the lane on the line), Head pin
(front pin), Ball return. Repeat for each lane.
#Playing
Book at the counter → pick up the ball at the return (E) → step up at the foul line (E) → A/D stance, mouse aim, scroll hook, hold and release left mouse on the power meter (green = best). Backspace steps off. X stands up from a seat.
#Tournaments
Counter → Tournaments tab. Anyone can host (staff only if "Let players host tournaments" is off in /bowladmin → Tournaments). The host picks:
- Most pins: everyone bowls at once, up to 4 a lane (waves if there are more groups than free
lanes); highest total over 1-3 games wins. A bowler who leaves keeps the score they had.
- Knockout: random bracket (4/8/16/32), byes when numbers are odd, 1-3 games a match on one
lane, a tied match goes to a one-ball roll-off. 3rd = losing semi-finalist with the higher score.
Entry fee ($0 up to the admin max) is paid on joining and held until the end. At the start the alley takes its cut (admin setting, default 10%) and anyone not within the start distance is dropped (fee stays in the pool). Fewer than 2 there = everyone refunded. A business boss can add prize money from the UltraBoss account when opening it. Pool pays 60/30/10 (Config.TourneySplit); ties share. Offline winners and refunds are paid into bank on their next login (KVP gr1m_bowling:owed). A restart or staff "End" refunds every fee and returns the business money. While one runs, the alley TVs show its leaderboard or bracket. Logic test: lua tests/tourney_test.lua.
#How it works
shared/lane.lua: lane maths, the throw simulation and ten-pin scoring. The server decides everyroll; clients only send stance/aim/spin/power and play back the result.
server/main.lua: saved setup (KVPgr1m_bowling:data) →GlobalState.gr1mBowl; admin callbacks.server/game.lua: booking, invites, money, turns, timers, pot →GlobalState.gr1mBowlLive.client/world.lua: pins, balls, roll playback, counter targets.client/game.lua: throw controls,camera, lane board.
client/seats.lua,client/tv.lua(DUI on thetvscreenrender target ofprop_tv_flat_michael; every copy of that model shows the same board),client/admin.lua.
GR1M