Skip to main content

Slots

Configuration

When working with the script, refer to this table to identify the available configuration entries and their corresponding data types, default values, and descriptions. Modify these entries as required to tailor the script's behavior to meet your specific requirements. Columns are explained below:

  • Variable: This column specifies the name of the configuration variable.

  • Type: This column indicates the data type associated with each configuration variable. Common types include string, number, bool, vector, table or other specific types relevant to the script requirements.

  • Default: This column provides the default value assigned to the configuration variable.

  • Description: This column provides a concise explanation of each configuration variable's purpose, function, or significance within the system. It helps users understand the role and impact of each variable and how it affects the script behavior.

Config.lua

Variable Type Default Description
Language string "en" Changes language of the script
BetItem string money Changes type of payment, you can choose between money, bank or any itemName
Bets table   Changes values of bets (starting from minimum to maximum)
WinChances table   Changes chance of each multiplier win (read this to test it)

Simulating Bets

We have prepared server-side console commands for simulating playing on a slot machine. These commands allow you to analyze the results of multiple bets and calculate average profits.

Results obtained from the console commands are based on random simulations and may vary between individuals. Each bet's outcome is determined by a random number generator, introducing an element of chance. As a result, the results you obtain may differ from those of others. It is recommended to run multiple runs to get a more accurate understanding of the expected outcomes. Keep in mind that these outcomes are inherently unpredictable, and the commands are meant for simulation and analysis purposes only.

Single simulation

Usage: __slotsim (amount of bets)

Example:

__slotsim 20
> Won amount: 300 | Spent amount: 1000 | Total -700

Average from multiple runs

Usage: __slotsimavg (amount of bets) (amount of runs)

Example:

__slotsimavg 100 10
> Average total: 230.0