Claw Machine
Physical Claw Machine arcade cabinet. Players pay chips, move the claw, and drop for a plush. A win grants the configured prize through an editable server hook. Runs through tgg-casino-tables (same ensure as other table games).
Resource
Dependencies
tgg-slots-server(required)tgg-casino-tables(required)ox_targetorqb-target(same as other table games)
Placement
Place cabinets from Casinos → Add placement → Claw Machine.
Supported methods: Spawn a new prop, Use existing prop, Replace prop, and bulk where the creator allows it.
Playable cabinet model: ch_prop_arcade_claw_01a.
How a play works
- Player pays the machine chip cost (no refund on leave / miss / timeout).
- Move the claw, then drop.
- A centered grab on a remaining plush rolls
winRate(chance is 1 / winRate). - On a win, the server calls
GiveClawPrize(source, prize)and that slot stays empty until restock. - On a miss, the cabinet is unchanged.
rarity (common / rare) only changes the win sound. It does not change odds. Odds are winRate only.
Features
- Nine prize slots (six common, three rare by default)
- Per-slot inventory item + world plush model
- Per-machine play price (Admin) with a Lua fallback
- Occupancy: one player per cabinet
- Restock from Admin (edit machine Restock, or machine metrics Refill for claw)
Prizes
Edit prize rows in:
tgg-casino-tables/config/claw.lua
Each row:
Default item names (register these in your inventory):
claw_plush_humpyclaw_plush_methyclaw_plush_sakiclaw_plush_stickyclaw_plush_smokeyclaw_plush_grindyclaw_plush_princessclaw_plush_wasabiclaw_plush_master
If an item is missing from inventory, the grab can still play as a win and empty the slot, but the player receives nothing. Register the items before going live.
Grant hook - GiveClawPrize
When a player wins, the server calls:
Implement or adjust this in:
tgg-casino-tables/server/custom/claw/GiveClawPrize.lua
The default body calls AddItem(source, prize.item, count) through your configured inventory adapter. Return true on success. Replace the body to grant cash, XP, or a different item.
See also Integrations.
Configuration
- Prize rows (editable):
tgg-casino-tables/config/claw.lua - Play price: Admin → machine / venue claw price (Lua fallback is 50 chips)
- Restock plushes: Admin → edit machine → Restock, or machine metrics Refill (claw only)
Skip config.internal.lua - cabinet feel, camera, and audio are not customer config.