[OpenSource] Chess Real 3D chess on an in-world board (PvP, AI, betting & spectate)

:chess_pawn: Chess real 3D chess you actually play in the world

Not a pop-up menu. You walk up to a chess table somewhere on the map, sit down, and play a real game on a physical board, pieces are actual props you move with an overhead camera from your own side. Play another player face to face, take on a built-in AI, put cash on the line, or pull up a chair and watch someone else’s match.

The whole rules engine (move generation, check, castling, en passant, promotion, the draw rules) is written from scratch in Lua and runs server-side, so the server is the single source of truth.The client can’t sneak an illegal move past it.

It’s free and open source. Auto-detects ESX, QBCore, or runs fully standalone.

:movie_camera: Preview: https://youtu.be/OQIW-MiO0eI

:sparkles: Features

  • :chess_pawn: Real 3D in-world board : physical props, not a flat NUI window. Tables stream in when you’re near and despawn when nobody’s around.
  • :crossed_swords: PvP: two players, one table, fully server-validated and mirrored to both sides + spectators in real time.
  • :robot: AI opponent, 3 difficulties: a from-scratch negamax + alpha-beta engine with piece-square tables. Easy plays loose and human, Hard hunts for the best move. It searches cooperatively so it never freezes your server.
  • :white_check_mark: Full legal rules: castling (both sides), en passant, promotion, check / checkmate / stalemate, plus the draw rules (insufficient material, 50-move, threefold). Illegal moves are rejected.
  • :money_bag: Money wagering (optional): both players stake the same, it’s escrowed at the start, winner takes the pot. Cash or bank, min/max + presets, optional house rake, full refund on a draw.
  • :movie_camera: Per-side camera + drag & drop: each player views the board from their own side. Hovered squares, legal moves, captures, the last move and the king in check are all highlighted.
  • :eyes: Spectator mode: walk up to a live game and watch it from the side, fully synced.
  • :speaker_high_volume: Interactive sounds : a crisp sound for every action (open, select, grab, move, capture, check, win, lose), synthesized in the browser so there are no audio files to ship.
  • :receipt: Move log + captured tray: recent moves in the scoreboard for players, full move history for spectators, captured pieces tallied per side with material advantage.
  • :crescent_moon: Night spotlight & map blips: a warm light over the board at night, plus optional blips for every table.

:puzzle_piece: Dependency

Needs the free bzzz_chess prop pack (table, board, chairs, piece models, sit animations). Grab it once, start it before this resource. No paid props, nothing else to buy.

:down_arrow: Download: GitHub - Pablosatorre/Chess: Real 3D chess on an in-world board for FiveM. PvP, AI, betting and spectating. · GitHub

:star: Like it? Drop a star on GitHub, it really helps!

Code is accessible Yes
Subscription-based No
Lines (approximately) +3000
Requirements bzzz_chess
Support Yes
8 Likes

This script is amazing thank you very much

Nice!

1 Like

idk how to play chess, BUT this looks cool to teach me. (more of a checkers guy myself :stuck_out_tongue: )

1 Like

thx <3