βš™οΈConfiguration

Parameter
Description
Example Value

Config.DefaultProp

The name of the table prop players place in the world.

"prop_table_07"

Config.PlaceOnGround

If true, automatically places the table on the ground.

true

Config.GroundOffset

Offset height if placing on ground.

0.0

Config.DrawText

Settings for 3D text (scale, font, color, alpha, outline)

(See code snippet)

Config.PlaceText

Text shown when placing the table (ENTER to confirm

"oENTERs to place the table"

Config.PlayText

Prompt for the table’s owner to start a match

"Press o[E]s to play."

Config.JoinText

Prompt shown to a second player who can join the match

"y%ss has invited you.\nPress [E] to join."

Config.UseCommand

If true, allows placing the table via a command

true

Config.CommandName

The name of the command (e.g., /wood

"finrow"

Config.UseItem

If true, players can place the table by using an item (ESX/QB)

true

Config.ItemName

The item name in your framework’s database

"finrow"

Config.CountBotWins

Whether wins against the bot count on the scoreboard

true

Config.UseESX

Set to true if your server uses ESX

true

Config.UseQBCore

Set to true if your server uses QBCore

true

Config.DiscordBotToken

If you need Discord integration for fetching avatars, set your bot token here.

YOUR_DCTOKEN_HERE

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"
}

Last updated