added config option to limit negative amount

No Config option and since bank isn't listed in QBConfig.Money.DontAllowMinus then **any** script that has 

```
if Player.Functions.RemoveMoney('bank'. Value) then
```

will allot them to go 11 characters negative causing massive exploits
This commit is contained in:
Mustache Dom
2024-10-22 15:03:03 -07:00
committed by GitHub
parent e488cbe61e
commit 36ce1524fb
+1
View File
@@ -8,6 +8,7 @@ QBConfig.StatusInterval = 5000 -- how often to check hu
QBConfig.Money = {}
QBConfig.Money.MoneyTypes = { cash = 500, bank = 5000, crypto = 0 } -- type = startamount - Add or remove money types for your server (for ex. blackmoney = 0), remember once added it will not be removed from the database!
QBConfig.Money.DontAllowMinus = { 'cash', 'crypto' } -- Money that is not allowed going in minus
QBConfig.Money.MinusLimit = 5000 -- The maximum amount you can be negative
QBConfig.Money.PayCheckTimeOut = 10 -- The time in minutes that it will give the paycheck
QBConfig.Money.PayCheckSociety = false -- If true paycheck will come from the society account that the player is employed at, requires qb-management