mCasino.api.jackpot
Game
mCasino Jackpot API
Types
JackpotPlayer
Jackpot Player
Functions
handleUpdate
This item only works when running on the client. ClientmCasino.api.jackpot.handleUpdate(panel: DPanel,--
The panel the update is being called to
onLocalPlayer?: (chance: number) → (),--
Returns the local casino player if found
onStatus?: (status: string) → (),--
Updates to status
onWin?: () → ()--
Called when player wins
) → ()Calculates and processes crash update for client consumption, implements panel.players with chance information
getPlayers
Returns the players for the game
getStates
mCasino.api.jackpot.getStates() → {string}Returns the states for the game
getState
mCasino.api.jackpot.getState() → stringReturns the current state for the game
game
INTERNALmCasino.api.jackpot.game() → {}Returns the internal game table, the contents of this table may change in updates
getTotalValue
mCasino.api.jackpot.getTotalValue() → number?Returns the total value of the spin, you should try use this first before .getTotalBets()
getTotalBets
mCasino.api.jackpot.getTotalBets() → numberCalculates the total amount of bets from the current players