Configuration
Every option in STG Chess V2 shared/config.lua, from language, target system, item name and fixed tables 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, cs, ar, he, jp, zh, ko. 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
Fixed tables
Config.FixedTables = {
{ coords = vector4(239.32, -875.98, 29.55, 207.68), minutes = 10, increment = 0 },
}Permanent tables that spawn in the same place after every restart. Players can not remove them. When a player leaves in the middle of a game, the table stays and both seats open up for the next game. The list is empty by default.
Prop
Type
To add or remove tables from your own scripts while the server runs, use the exports.
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.