fix(es_extended): addAccountMoney/removeAccountMoney not working

This commit is contained in:
Mycroft
2022-08-31 12:05:49 +01:00
parent fd7d26888a
commit 6f62091797
+2 -2
View File
@@ -201,7 +201,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
local account, index = self.getAccount(accountName)
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[index].money = money
self.accounts[index].money += money
self.triggerEvent('esx:setAccountMoney', account)
else
@@ -222,7 +222,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[index].money = money
self.accounts[index].money -= money
self.triggerEvent('esx:setAccountMoney', account)
else