RedM
  • πŸ‡«πŸ‡·Home
  • πŸ§‘β€πŸŒΎAmbient NPC
  • β›ΊCampement
  • πŸƒCard Collection
  • β™ŸοΈChess & Checkers Game
  • πŸ’£Dynamite
  • πŸ™‹Environment animations
  • πŸ”₯Fire sync
  • 🐎Feeding Horse + Syringe
  • 🚭Illicit Sales
  • βš–οΈInstances
  • πŸ“₯Market Stall
  • 🩺Medical Records
  • 🍲Metabolism
  • πŸ—£οΈMumble Block UI
  • ⏸️Pause Menu
  • ⌨️Quick Keys Menu
  • πŸ’΅Reward Loyalty and Total playtime
  • πŸ–‹οΈTattoo
  • πŸ₯‡Top Serveurs
  • ⚰️Undertaker
  • πŸ’€Wanted
  • πŸ”«Weapon Cleaning Animation
  • 🏹Weapon Rack
Powered by GitBook
On this page

Chess & Checkers Game

This script is compatible with all frameworks.

Here is an excerpt from the config.lua file : (parts of the excerpt are hidden) :

Config = {}

-- Enable or disable debug mode
Config.DEBUG = false

-- Key bindings for various actions during the game
Config.Play = keys["U"]         -- Key to play your turn
Config.Moves = keys["E"]        -- Key to show/hide possible moves
Config.Cancel = keys["R"]       -- Key to cancel/leave the game
Config.Yes = keys["RIGHT"]      -- Key to confirm/accept (Right Arrow)
Config.Insult = keys["DOWN"]    -- Key to taunt the opponent (Down Arrow)
Config.No = keys["LEFT"]        -- Key to decline/refuse (Left Arrow)
Config.Camera = keys["C"]       -- Key to switch camera view
Config.Gamemode = keys["G"]     -- Key to switch game mode (Chess/Checkers)

-- Game options
Config.RestartDelay = 20         -- Auto-restart delay (in seconds) after stalemate or checkmate
Config.CanPlayEnemyTurn = true   -- Allow player to play the enemy's turn (useful for solo practice)
Config.ShowPossibleMoves = true  -- Allow showing possible moves on the board

-- Texts displayed in the UI (can be customized or translated)
Config.Txt = {
    Chess = "Chess",
    Play = "Play",
    Cancel = "Leave",
    ShowMoves = "Show/Hide Moves",
    Promotion = "Promotion",
    PromotionSub = "Select a piece",
    MatchNul = "Draw",
    RepeatPos = "Position repeated three times",
    NoLegalMoves = "No legal move available",
    Checkmate = "Checkmate!",
    White = "white",
    Black = "black",
    WinColor = "%s wins!",   -- %s will be replaced with "white" or "black"
    Insult = "Taunt",
    Yes = "Yes!",
    No = "No!",
    Camera = "Camera",
    CheckerEnd = "Finish!",
    GameModeChess = "Chess",
    GameModeCheckers = "Checkers"
}

-- Chess board positions (world coordinates)
Config.ChessGames = {
    -- hidden
}

-- Camera angles for each chess game
Config.CameraAngles = {
  -- hidden
}

Last updated 20 days ago

β™ŸοΈ