checks to see if RemoveMoney has enough

removes exploit to allow bank to be -99999999999
This commit is contained in:
Mustache Dom
2024-10-22 15:07:23 -07:00
committed by GitHub
parent 06f7f6e967
commit 080556c425
+1
View File
@@ -341,6 +341,7 @@ function QBCore.Player.CreatePlayer(PlayerData, Offline)
end
end
end
if self.PlayerData.money[moneytype] - amount <= QBConfig.Money.MinusLimit then return false end
self.PlayerData.money[moneytype] = self.PlayerData.money[moneytype] - amount
if not self.Offline then