Skip to main content

Player

mCasino player extensions

Functions​

addCasinoGems​

This item only works when running on the server. Server
Player:addCasinoGems(gems: number) → ()

Number of gems to add to a player

setCasinoGems​

This item only works when running on the server. Server
Player:setCasinoGems(
gems: number,
callback: () → ()
) → ()

Number of gems to set for a player

isCasinoLoaded​

Player:isCasinoLoaded() → boolean

Checks if mCasino data is loaded for the player

getCasinoGems​

Player:getCasinoGems() → number

Returns number of gems for a player

canAffordGems​

Player:canAffordGems(gems: number) → boolean

Checks if a player can afford the amount of gems