Hooks
Hooks provided by the Slots module for managing slot machine gameplay.
Overview
The Slots module adds a slot machine minigame, a workshop model for the machine, handling of payouts to winners, customizable payout odds, and sound and animation effects.. It provides comprehensive hook integration for customizing managing slot machine gameplay and extending functionality.
SlotMachineEnd
đ Purpose
Called when a slot machine spin ends.
â° When Called
After the wheels stop and payout is determined.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
machine |
Entity | The slot machine entity |
client |
Player | The player who used the machine |
payout |
number | The payout amount (0 if no win) |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Slots module adds a slot machine minigame, a workshop model for the machine, handling of payouts to winners, customizable payout odds, and sound and animation effects.. It provides comprehensive hook integration for customizing managing slot machine gameplay and extending functionality.
SlotMachinePayout
đ Purpose
Called when a slot machine pays out.
â° When Called
When the player wins and receives money.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
machine |
Entity | The slot machine entity |
client |
Player | The player who won |
payout |
number | The payout amount |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Slots module adds a slot machine minigame, a workshop model for the machine, handling of payouts to winners, customizable payout odds, and sound and animation effects.. It provides comprehensive hook integration for customizing managing slot machine gameplay and extending functionality.
SlotMachineStart
đ Purpose
Called when a slot machine spin starts.
â° When Called
When the wheels begin spinning.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
machine |
Entity | The slot machine entity |
client |
Player | The player who started the spin |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Slots module adds a slot machine minigame, a workshop model for the machine, handling of payouts to winners, customizable payout odds, and sound and animation effects.. It provides comprehensive hook integration for customizing managing slot machine gameplay and extending functionality.
SlotMachineUse
đ Purpose
Called when a player uses a slot machine.
â° When Called
When the use function is called, before checking money.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
machine |
Entity | The slot machine entity |
client |
Player | The player using the machine |
âŠī¸ Returns
nil
đ Realm
Server