mCasino.api.slots
Game
mCasino Slots API
Types
SlotPlayer
interface SlotPlayer {ply: Playeramount: numberstartTime: number--
Start time of the spin
symbols: {number}--
The spin symbols
reward: number}Slot Player
Functions
paytable
This item only works when running on the client. ClientmCasino.api.slots.paytable() → DPanel::mCasino_slotsPaytableShows the slots paytable
getPlayers
This item only works when running on the client. ClientReturns the subscribed players
getPlayer
This item only works when running on the client. ClientReturns the slot player information if available
bet
This item only works when running on the client. ClientmCasino.api.slots.bet(amount: number--
The amount to bet
) → ()Attempts to spin, handles amount checking and throws popup if insufficient balance
handleSpinComplete
This item only works when running on the client. ClientmCasino.api.slots.handleSpinComplete(bet: number,--
Bet amount
autoSpin: boolean,--
Is auto spin enabled?
onSpin: (shouldSpin: boolean) → (),--
Called if auto spin is enabled, you should check if the panel exists as this can happen in the future
onStatus?: (status: string) → (),--
Updates to status
onWin?: () → ()--
Called when player wins
) → ()Handles once the spin is complete, handles auto spin and balance check
handleUpdate
This item only works when running on the client. ClientmCasino.api.slots.handleUpdate(lastSpin: number,--
Last spin time
onStatus?: (status: string) → ()--
Updates to status
) → ()Handles the update for client consumption