mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Removed ES leftover code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user