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:
activity |
---|
slots |
luckywheel |
insidetrack |
drinkingbar |
roulette |
poker |
blackjack |
cashier |
seating |
cameras |
officeelevator |
officeelevatorout |
casinoteleporter |
Enables/Disables the casino and locks/unlocks the entrance.
Updates the casino setting.
Gets the casino setting. List of setting names:
setting | description |
---|---|
PodiumPriceProps | vehicle props of the actual podium vehicle |
PlayerData
Property | Description |
---|---|
Player.playerId | Player ID |
Player.playerName | Player name |
Player.playerChips | Player chips |
Player.enterTime | Casino enter time (server game timer) |
Player.sessionScore | How much player earned/lost since he entered the casino |
Player.currentGame | Player GameData, returns nil when idle |
GameData
Property | Description |
---|---|
GameData.type | GameType of current game |
GameData.coords | Position of the game, if avaiable |
GameData.hash | Model of the playing slot machine, if playing Slots |
GameData.bartenderId | Index of the bartender, if using one |
GameData.chair | Index of the chair, if playing table games or Inside Track |
GameTypes
Blackjack |
Inside Track |
Lucky Wheel |
Roulette |
Slots |
Bartender |
Bar |
Sitting |
Server Events
Client Events
Last updated