CasinoControl (Exports)
Controlling casino from an another resource.
Getting The CasinoControl Object
Functions
Returns PlayerData of player. Returns nil if player isn't inside the casino.
Returns PlayerData array of all players inside casino.
Checks if player is currently inside the casino.
Check if player is busy. Returns true when playing a game, interacting with a bartender, or sitting somewhere. Don't move/teleport/interact with the player if they're busy.
Force player to finish playing and leave their chair, if busy.
Block player from entering games, interacting with bartenders, sitting on chairs. Also forcing them to finish playing if busy. Rejoining the server resets it.
Allow player to enter games and interact again.
Warn player to behave, by kicking them out of the building.
Enables or disables VIP Casino Membership of player.
Set/Reset Lucky Wheel cooldown for player.
Gives player free drinks for duration (Lucky Wheel free drinks price)
Sends player their new progress (VIP state, cooldowns...)
Toggles the casino feature on/off. List of activity names:
Enables/Disables the casino and locks/unlocks the entrance.
Updates the casino setting.
Gets the casino setting. List of setting names:
PlayerData
GameData
GameTypes
Server Events
Client Events
Last updated