samp.directory
← Scripts and libraries

defaultzone/SAChess

SAChess - implementation of the Lichess API for GTA: San Andreas with ImGui.

Tool★ 1updated Mar 2024GPL-3.0Lua
Open on GitHub

README.md

SAChess - implementation of the Lichess API for GTA: San Andreas with ImGui.

SAChess is a free and open source implementation of the Lichess API in Lua dialect - Clue. You can play it directly in the game with ImGui interface. It features board streaming, seek creating, draw handling, resigning or aborting games.

[!NOTE]
You can play only rapid and classical games due lichess Board API limits.

SAChess is using some public assets for different purposes:

Thanks!

Compilation

SAChess is using Lua dialect called Clue: all files from src/ directory will be compiled to the one Lua script. You can use next command to compile all source code:

clue -t=luajit --base base/Release.lua src/

Compiled file will be in the root directory of the repository. It called as main.lua.

Installation

To inject Lua script in game proccess we using MoonLoader and it's default library. So, you can just put compiled file in moonloader/ directory and it will work (only if you have all libraries installed, there listed below).

Libraries that used in this project:

  • mimgui
  • effil
  • requests

You can install all of them here. Put each library in moonloader/lib/ directory.

After you finally installed all dependencies and script - type /sachess.open command (or press F2) to open board. You will be prompted to enter the Lichess API token in it.

License

SAChess is licensed under the terms of the GNU General Public License v3.

chesschessboardlichess-apisamp

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing