STG ScriptsDocumentation
Chess V2

Configuration

Every option in STG Chess V2 shared/config.lua, from language, target system and item name to prop models, animations, the board camera and notifications.

All settings live in stg-chessv2/shared/config.lua. The file stays editable in the escrow version. Restart the resource after a change.

Language

Config.Language = 'en'

Available: en, de, fr, es, pt, it, nl, pl, sv, no, fi, ar, he, jp, zh. To change a text, edit the matching file in stg-chessv2/locales/. The texts on the board HUD and the clock setup are in the web block of the same file.

Target system

Config.TargetSystem = 'auto'

Prop

Type

The floating prompt above the table works with every setting. Players press E to sit down, and the owner presses H to remove the table. Only the owner can remove a table, even through the target option.

Item

Config.Item = 'stg_chess'

Prop

Type

Props

Config.Models = {
    table = 'bzzz_chess_table_a',
    board = 'bzzz_chess_board_a',
    chair = 'bzzz_chess_chair_a',
}

Prop

Type

All models come from the BzZz chess prop pack and are streamed from the stream/ folder, together with the twelve piece models. The piece models are not in the config.

Swapping these for your own models works, but the board model must keep the same square layout or the pieces will not line up with the squares.

Animations

Config.Animation = {
    Dict = 'bzzz_chess_animations',
    SitClip = 'bzzz_chess_sit_a',
    MoveClip = 'bzzz_chess_sit_b',
}

Prop

Type

Camera

Config.Camera = {
    Height = 0.72,
    Back = 0.8,
    Fov = 45.0,
}

While seated, a camera looks down at the board from the player's side.

Prop

Type

Notifications

Config.Functions = {
    Notify = function(type, message)
        lib.notify({ type = type, description = message })
    end,
    ShowHelpNotify = function(message)
        lib.showTextUI(message, { position = 'left-center' })
    end,
    HideHelpNotify = function()
        lib.hideTextUI()
    end,
}

Prop

Type

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page