fix(server/player): add forgotten variable for setmoney

This commit is contained in:
BerkieBb
2022-08-24 15:06:40 +02:00
committed by GitHub
parent 59ae47fa92
commit d563a89891
+1
View File
@@ -346,6 +346,7 @@ function QBCore.Player.CreatePlayer(PlayerData, Offline)
amount = tonumber(amount)
if amount < 0 then return false end
if not self.PlayerData.money[moneytype] then return false end
local difference = amount - self.PlayerData.money[moneytype]
self.PlayerData.money[moneytype] = amount
if not self.Offline then