mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:01:24 +00:00
fix(server/player): add forgotten variable for setmoney
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user