This commit is contained in:
Benzo
2022-09-16 01:40:19 +02:00
-7
View File
@@ -198,13 +198,6 @@ AddEventHandler('esx:setAccountMoney', function(account)
for i=1, #(ESX.PlayerData.accounts) do
if ESX.PlayerData.accounts[i].name == account.name then
ESX.PlayerData.accounts[i] = account
if ESX.PlayerData.accounts[i].name == "bank" then
PlayerBank = account.money
StatSetInt("BANK_BALANCE", PlayerBank, true)
elseif ESX.PlayerData.accounts[i].name == "money" then
PlayerMoney = account.money
StatSetInt("MP0_WALLET_BALANCE", PlayerMoney, true)
end
break
end
end