Skip to content

GetDiceMatchInfo

The state of a running dice match - the players, the stake, the goal, the totals, whose turn it is.

GetDiceMatchInfo(id)
Parameter Type
id number the match

table - {id, challenger, opponent, bet, goal, gameType, challengerScore, opponentScore, turn, turnTimeout} (turn = the player to move, turnTimeout = the seconds a move may take), or nil once it is over

local info = GetDiceMatchInfo(GetPlayerDiceMatch(pid) or 0)
if info then
SendClientMessage(pid, COLOR_SERVER, string.format("%d : %d of %d", info.challengerScore, info.opponentScore, info.goal))
end

GetPlayerDiceMatch · the Dice group of the index