> For the complete documentation index, see [llms.txt](https://risk-scripts.gitbook.io/risk-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://risk-scripts.gitbook.io/risk-scripts/scripts/4-in-row-script/configuration.md).

# Configuration

| Parameter              | Description                                                                                      | Example Value                                                                                                                                                                                                                                                                |
| ---------------------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Config.DefaultProp     | The name of the table prop players place in the world.                                           | <mark style="color:red;">`"prop_table_07"`</mark>                                                                                                                                                                                                                            |
| Config.PlaceOnGround   | If <mark style="color:red;">`true`</mark>, automatically places the table on the ground.         | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.GroundOffset    | Offset height if placing on ground.                                                              | <mark style="color:red;">`0.0`</mark>                                                                                                                                                                                                                                        |
| Config.DrawText        | Settings for 3D text (scale, font, color, alpha, outline)                                        | <mark style="color:red;">(See code snippet)</mark>                                                                                                                                                                                                                           |
| Config.PlaceText       | Text shown when placing the table (`ENTER` to confirm                                            | <mark style="color:red;">`"`</mark>~~<mark style="color:red;">`o`</mark>~~<mark style="color:red;">`ENTER`</mark>~~<mark style="color:red;">`s`</mark>~~<mark style="color:red;">` `</mark><mark style="color:red;">`to place the table"`</mark>                             |
| Config.PlayText        | Prompt for the table’s owner to start a match                                                    | <mark style="color:red;">`"Press`</mark><mark style="color:red;">` `</mark>~~<mark style="color:red;">`o`</mark>~~<mark style="color:red;">`[E]`</mark>~~<mark style="color:red;">`s`</mark>~~<mark style="color:red;">` `</mark><mark style="color:red;">`to play."`</mark> |
| Config.JoinText        | Prompt shown to a second player who can join the match                                           | <mark style="color:red;">`"`</mark>~~<mark style="color:red;">`y`</mark>~~<mark style="color:red;">`%s`</mark>~~<mark style="color:red;">`s`</mark>~~<mark style="color:red;">` `</mark><mark style="color:red;">`has invited you.\nPress [E] to join."`</mark>              |
| Config.UseCommand      | If <mark style="color:red;">`true`</mark>, allows placing the table via a command                | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.CommandName     | The name of the command (e.g., <mark style="color:red;">`/wood`</mark>                           | <mark style="color:red;">`"finrow"`</mark>                                                                                                                                                                                                                                   |
| Config.UseItem         | If <mark style="color:red;">`true`</mark>, players can place the table by using an item (ESX/QB) | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.ItemName        | The item name in your framework’s database                                                       | <mark style="color:red;">`"finrow"`</mark>                                                                                                                                                                                                                                   |
| Config.CountBotWins    | Whether wins against the bot count on the scoreboard                                             | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.UseESX          | Set to <mark style="color:red;">`true`</mark> if your server uses ESX                            | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.UseQBCore       | Set to <mark style="color:red;">`true`</mark> if your server uses QBCore                         | <mark style="color:red;">`true`</mark>                                                                                                                                                                                                                                       |
| Config.DiscordBotToken | If you need Discord integration for fetching avatars, set your bot token here.                   | <mark style="color:red;">`YOUR_DCTOKEN_HERE`</mark>                                                                                                                                                                                                                          |

```lua
Config = {
  DefaultProp     = "prop_table_07",
  PlaceOnGround   = true,
  GroundOffset    = 0.0,

  DrawText = {
      scale   = 0.35,
      font    = 4,
      r       = 255,
      g       = 255,
      b       = 255,
      alpha   = 255,
      outline = true
  },
  PlaceText = "~o~ENTER~s~ to place the table",
  PlayText  = "Press ~o~[E]~s~ to play.",
  JoinText  = "~y~%s~s~ has invited you.\nPress [E] to join.",

  UseCommand   = true,
  CommandName  = "finrow",
  UseItem      = true,
  ItemName     = "finrow",
  CountBotWins = true,

  UseESX    = true,
  UseQBCore = false,

  NotifyBotInvite    = "You are now playing against the bot.",
  NotifyFriendInvite = "You have invited a friend.",
  NotifyWin          = "You won!",
  NotifyLose         = "You lost...",
  NotifyDraw         = "It's a draw.",

  MaxScoreboardEntries = 8,
  DiscordBotToken      = "YOUR_DCTOKEN_HERE"
}

```
