Removed ES leftover code

This commit is contained in:
ElPumpo
2020-03-04 11:28:34 +01:00
parent 8c719dcb23
commit c4655598f9
-13
View File
@@ -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