⚙️Configuration

Below is your Config table, along with a brief description of each setting. You can update these values directly in your config.lua (or equivalent).

Parameter
Description
Example Value

Config.Framework

Which framework to use (e.g., "esx", "qb", or "auto" if your code supports auto-detection).

"esx"

Config.Command

The chat command players can use to launch the Tic Tac Toe UI.

"tictactoe"

Config.Proximity

The distance (in meters) within which players can invite others for multiplayer.

10.0

Config.MaxRankPlaces

The number of top players (by total wins) to display on the leaderboard.

5

Config.Debug

If true, enables debug logs for troubleshooting.

false

Config.BotDifficulty

AI difficulty for single-player matches (e.g., 0 - 1).

1

Config.LineWobble

A “wobble” effect for drawn lines in the in-game UI.

20

Config.XOWobble

A “wobble” effect for X’s and O’s.

20

Config.Locale

The default language to use (e.g., "en", "de").

"en"

Config.ItemName

The internal name of the item (for inventory references).

"tictactoe"

Config.ItemLabel

The display name of the item (e.g., in ESX inventory).

"TicTacToe Board"

Config = {
  Framework = "esx",
  Command = "tictactoe",
  Proximity = 10.0,
  MaxRankPlaces = 5,
  Debug = false,

  -- Bot settings
  BotDifficulty = 1,
  LineWobble = 20,
  XOWobble = 20,

  -- Language
  Locale = 'en',
  SupportedLocales = { 'en', 'de' },

  -- Item-based usage
  ItemName = "tictactoe",
  ItemLabel = "TicTacToe Board"
}

Last updated