From 36ce1524fbf1765971fe33db4b81c6bd3fd20313 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:03:03 -0700 Subject: [PATCH] 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 --- config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config.lua b/config.lua index f0dbf8d..69a4c85 100644 --- a/config.lua +++ b/config.lua @@ -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