~/docs/chess/configuration/config
chess docs›
Chess
Config
-- 2 code blocks · 1 min read
Everything lives in shared/sh.lua.
Framework
Shared.Framework = {
autoDetect = true, -- detect ESX / QBCore / Standalone at runtime
ESX = false, -- when autoDetect = false, force one of these
QBCore = false,
Standalone = false,
}
Key options
| Option | Description |
|---|---|
Config.Locations |
World spots where a table spawns (coords, heading, blip toggle). |
Config.Betting |
enabled, account (money or bank), min, max, presets, houseCut, drawRefund. |
Config.AI.levels |
Difficulty list, each { id, depth, randomness, moveDelay }. |
Config.Sit / Config.Camera |
Seated ped placement and the overhead / scene cameras. |
Config.Spotlight |
Overhead table light (night-only by default). |
Shared.Locale |
All on-screen text. |
Adding a table
Config.Locations = {
{ coords = vec3(-1319.88, -925.41, 10.2), heading = 104.88, blip = true },
-- add more spots here
}
Set
Config.Debug = trueto enable the in-world tuning commands/chesssit,/chesscamand/chesschairfor dialing in ped and camera placement. Turn it back off for production.