gta6/prompts
casino
Vaultbeginnercasino

Video Poker Machine

ESX/QBCore single-player Jacks-or-Better video-poker terminal with server-dealt hold/draw and a configurable paytable.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~125 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A single-player Jacks-or-Better video-poker terminal: the server deals five cards, the player holds the ones they want, the server redraws the rest and pays from a configurable paytable. Servers buy it as a low-supply floor-filler that monetizes idle players without needing a live dealer or a second seat.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

πŸ”’ Eyes-only β€” locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth β€” both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access β€” pay once
Most Popular Β· Best Value
Vault$199one-time
  • All 510 prompts β€” the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates β€” new niches as the market moves
Get the Vault β€” $199

$49 for 60 Β· $199 for all 510 + intelligence β€” one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/casino/17-video-poker-machine.lua. It implements a proximity terminal with a loaded sit anim, a server-side deal that caches the hand per source,…

πŸ”’ Eyes-only β€” locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth β€” both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access β€” pay once
Most Popular Β· Best Value
Vault$199one-time
  • All 510 prompts β€” the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates β€” new niches as the market moves
Get the Vault β€” $199

$49 for 60 Β· $199 for all 510 + intelligence β€” one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Client-side evaluation β€” the player can claim a royal flush every time; deal, redraw and score in server.lua.
  • Anim before load β€” TaskPlayAnim no-ops without RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Hand not cached β€” without activeHand[src] the server cannot trust the draw; cache the dealt hand server-side and clear it after the draw.
  • One-sided net event β€” both deal and draw round-trips need RegisterNetEvent + AddEventHandler on both sides.

Corrective re-prompt: Cache the dealt five-card hand server-side in activeHand[src], deal and redraw from a server drawCard(), evaluate against the Paytable on the server, and addMoney only the computed win β€” the client should only ever send the holds[] indices.

Framework Integration

  • ESX: xPlayer.getMoney() / xPlayer.removeMoney(Bet) for the ante and xPlayer.addMoney(win) for the payout.
  • QBCore: swap to Player.Functions.RemoveMoney('cash', Bet, 'vpoker') and AddMoney('cash', win, 'vpoker-win').
  • QBox: identical to QBCore via exports.qbx_core:GetPlayer(src); the deal/evaluate logic is framework-agnostic and stays server-side.

Profit Potential

$150–$2000/mo on Tebex (expected ~$450). [INFERRED] priced inside the $50-389 FiveM script band against a stable single-player-terminal niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

β†’ stable β€” inferred: Domain: single-player terminal floor-filler, low supply.

Sales Angle

Position as the low-supply, no-dealer floor-filler that monetizes idle players one seat at a time β€” cheap to drop in, easy to reskin the paytable. Recommended Tebex price $79.

Difficulty & Ship Time

beginner Β· ships in 2-4h.