Corrected spelling

This commit is contained in:
ElPumpo
2020-03-11 09:44:26 +01:00
parent e0d561649b
commit a8255ce6e3
+3 -3
View File
@@ -55,21 +55,21 @@ function loadESXPlayer(identifier, playerId)
['@identifier'] = identifier
}, function(result)
local job, grade, jobObject, gradeObject = result[1].job, tostring(result[1].job_grade)
local fonudAccounts, foundItems = {}, {}
local foundAccounts, foundItems = {}, {}
-- Accounts
if result[1].accounts and result[1].accounts ~= '' then
local accounts = json.decode(result[1].accounts)
for account,money in pairs(accounts) do
fonudAccounts[account] = money
foundAccounts[account] = money
end
end
for account,label in pairs(Config.Accounts) do
table.insert(userData.accounts, {
name = account,
money = fonudAccounts[account] or Config.StartingAccountMoney[account] or 0,
money = foundAccounts[account] or Config.StartingAccountMoney[account] or 0,
label = label
})
end