Advanced Chess System
Introducing Advanced Chess System - A fully synchronized chess experience with multiplayer matches, configurable AI opponents, animated players, spectator displays, and immersive 3D gameplay. Bring realistic chess matches directly into your FiveM server!
Preview
Preview Video -- not yet made
Key Features
Multiplayer Chess
- Play against other players
- Fully synchronized chessboard and pieces
- Automatic player seating
- White and black player assignment
- Spectator support
- Synchronized move history
- Check, checkmate and stalemate detection
- Resign and draw options
- Board reset requiring both players’ approval
AI Opponents
Three configurable difficulty levels:
- Easy - Suitable for casual players
- Medium - Balanced gameplay
- Hard - Stronger and more strategic AI
Additional AI features:
- Random configurable NPC models
- AI NPC automatically sits at the table
- Animated AI moves
- Identical move timing across all difficulties
- Fully synchronized AI matches
Realistic Chess Gameplay
- Complete legal chess move validation
- Castling
- En passant
- Pawn promotion
- Captured piece tracking
- Smooth physical piece movement
- Selectable and highlighted legal moves
- Check and capture indicators
- Interactive 3D chess pieces
Immersive Animations
- Custom sitting animations
- Move animation when a player performs a turn
- Automatic return to idle animation
- Animations for both players and AI
- Configurable animation duration
- Players remain correctly positioned on chairs
Spectator DUI
- Floating live match display above the table
- Automatically faces nearby spectators
- Displays the complete board state
- Shows player names and current turn
- Recent move history
- Distance-based loading for better performance
- Automatically removed when the match ends
Advanced Camera
- Dedicated chess camera
- Configurable height, distance and field of view
- Camera orientation based on player side
- Mouse wheel zoom
- Clear view of the complete board
- Smooth camera transitions
Sound Effects
- Spatial chess move sounds using
xsound - Configurable volume and hearing distance
- Sounds originate directly from the chessboard
- Automatic sound cleanup
- Nearby players can hear performed moves
Interaction Support
Multiple interaction systems supported:
Supported target resources:
ox_targetqb-targetqtarget- Automatic target detection
Framework Support
- Standalone
- ESX
- QB-Core
- Automatic framework detection
- All framework integrations are separated from the main chess logic
Configuration
- Simple table creation using
vec4 - Shared table and chair layout
- Per-table layout overrides
- Configurable seating offsets
- Configurable camera
- Configurable AI difficulty
- Configurable NPC models
- Configurable animations
- Configurable spectator DUI
- Configurable sound effects
- Debug placement tools
Example:
Config.Tables = {
vec4(338.5125, -1630.5292, 97.9960, 142.53),
}
Core Functions
- Play against another player
- Play against AI
- Move and capture pieces
- Highlight legal moves
- Promote pawns
- Offer or accept a draw
- Request a board reset
- Resign from a match
- Spectate active games
- View move history
- Synchronize ongoing matches after reconnecting
Unique Features
- Physical animated chess pieces
- Live spectator display above the table
- Three AI difficulty levels
- Animated player and AI turns
- Spatial move sound effects
- Complete multiplayer synchronization
- Simple
vec4 table configuration - Standalone architecture
- Advanced in-game placement tools
Dependencies
ox_libdrc_chesspropsxsound
Optional interaction dependencies:
ox_targetqb-targetqtarget
Optional frameworks: