GetDiceMatchInfo
The state of a running dice match - the players, the stake, the goal, the totals, whose turn it is.
Syntax
Section titled “Syntax”GetDiceMatchInfo(id)| Parameter | Type | |
|---|---|---|
id |
number | the match |
Returns
Section titled “Returns”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
Example
Section titled “Example”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))endSee also
Section titled “See also”GetPlayerDiceMatch · the Dice group of the index
