# Tax system

The tax system is configured in the config.lua file under the `Config.Tax` section. It includes settings for both deposits and withdrawals:

* **Min**: Minimum amount for a transaction.
* **Max**: Maximum amount for a transaction.
* **Percent**: Percentage of the transaction amount to be charged as tax.
* **Free**: Amount that can be transacted daily without tax.
* **FreeTransactions**: Number of free transactions allowed per day.
* **MinTax**: Minimum tax amount.
* **DailyLimit**: Maximum number of transactions allowed per day (-1 for unlimited).
* **DailyLimitAmount**: Maximum amount that can be transacted per day (-1 for unlimited).
* **CanMinus**: Whether the player can go negative in their account balance to cover the tax.

#### Daily Transactions

The system tracks daily transactions for each player to enforce limits and apply taxes accordingly. The transactions are reset every 8 hours (default).&#x20;

config.lua

```lua
Config.ResetDailyTransactionsTime = 8 * 60 * 60 -- 8 hours
```

When the script is stopped, it saves the daily transactions to a JSON file (`data.json`). Upon restarting the script, it reloads the transactions from this file to ensure continuity.
