Skip to content

Configuration

All settings are in config.lua. Restart lo_chess after making a change.

Main options

OptionDefaultDescription
Config.Locale"en"Active language: fr, en, pt-br, pt, ru or de.
ChessGame.command"chess"Command that opens the board placement mode.
ChessGame.placeDistance8.0Maximum placement distance in metres.
ChessGame.interactDistance3.0Range for board prompts.
ChessGame.streamDistance35.0Distance at which a board streams in.
ChessGame.despawnDistance45.0Distance at which a board despawns.
ChessGame.botThinkDelay900Bot thinking delay in milliseconds.
ChessGame.botCommandLevel"staff"VORP level required by the bot command.
ChessGame.botCommandAce"lo_games.bot"ACE permission checked for the bot command.

Language

lua
Config.Locale = "fr"

Translations are located in locales/. An unknown locale falls back to French, then English.

Placement gizmo

ChessGame.placement controls the integrated gizmo. The defaults are suited to precise placement:

lua
placement = {
    rotationSnap = 2.5,
    translationSnap = 0.01,
    gizmoSize = 0.35,
    controls = {
        switch = 'INPUT_CONTEXT_X',
        confirm = 'INPUT_FRONTEND_ACCEPT',
        cancel = 'INPUT_FRONTEND_CANCEL',
        snapToGround = 'INPUT_INTERACT_OPTION1',
    },
}

Use the on-screen prompts to switch between translation and rotation, snap the board to the ground, confirm or cancel. The board model and all piece models can be changed in ChessGame.models if you use compatible RedM props.

Bot permission

Keep the ACE name in sync with your server.cfg:

lua
ChessGame.botCommandAce = 'lo_games.bot'
cfg
add_ace group.admin lo_games.bot allow