diff --git a/server/classes/player.lua b/server/classes/player.lua index d474a566..042100fd 100644 --- a/server/classes/player.lua +++ b/server/classes/player.lua @@ -191,13 +191,8 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory, if account then local prevMoney = account.money local newMoney = ESX.Math.Round(money) - account.money = newMoney - if accountName == 'bank' then - self.set('bank', newMoney) - end - self.triggerEvent('esx:setAccountMoney', account) end end @@ -211,10 +206,6 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory, local newMoney = account.money + ESX.Math.Round(money) account.money = newMoney - if accountName == 'bank' then - self.set('bank', newMoney) - end - self.triggerEvent('esx:setAccountMoney', account) end end @@ -228,10 +219,6 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory, local newMoney = account.money - ESX.Math.Round(money) account.money = newMoney - if accountName == 'bank' then - self.set('bank', newMoney) - end - self.triggerEvent('esx:setAccountMoney', account) end end