For the complete documentation index, see llms.txt. This page is also available as Markdown.

🏳️Config

Everything lives in shared/sh.lua.

Framework

shared/sh.lua
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

shared/sh.lua
Config.Locations = {
    { coords = vec3(-1319.88, -925.41, 10.2), heading = 104.88, blip = true },
    -- add more spots here
}

Set Config.Debug = true to enable the in-world tuning commands /chesssit, /chesscam and /chesschair for dialing in ped and camera placement. Turn it back off for production.

Last updated