Arenadata

Arena Data Table Structure

Below is the table structure for the arena data.

Depending on the gamemode, the arena data table will be structured differently.

  • arenaData: table
    • identifier: string
    • label: string
    • host: number Player Source
    • gamemode: string
    • playerList: table
      • src: table <number>
        • loadout: number
        • netId: number
        • src: number
        • team: number
    • playerCount: number
    • maxPlayers: number
    • started: boolean
    • teams: table
      • 1: table <number>
        • src: table <number>
          • name: string
          • src: number
      • 2: table <number>
        • src: table <number>
          • name: string
          • src: number
    • score: table
      • 1: number
      • 2: number
    • scoreboard: table
      • src: table <number>
        • name: string
        • score: number
    • bucket: number
    • map: string
    • maxKills: number
    • loadout: string

Example:

local arenaData = {
  identifier = '12345',
  label = 'Example Arena Lobby',
  host = 1,
  gamemode = 'tdm',
  playerList = {
    [1] = {
      loadout = 1,
      netId = 123,
      src = 1,
      team = 2,
    }
  },
  playerCount = 1,
  maxPlayers = 12,
  started = false,
  teams = {
    [1] = {
      [1] = {
        name = 'Bobby Lee',
        src = 1
      }
    },
    [2] = {}
  },
  score = {
    [1] = 12,
    [2] = 0
  },
  scoreboard = {
    [1] = {
      [1] = {
        name = 'Bobby Lee',
        score = 12,
      }
    }
  },
  bucket = 1,
  map = 'junkyard',
  maxKills = 30,
  loadout = 'pistols'
}