mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 02:01:33 +00:00
checks to see if RemoveMoney has enough
removes exploit to allow bank to be -99999999999
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user