Minor adjustments

This commit is contained in:
ElPumpo
2020-03-25 22:45:23 +01:00
parent 4253d02d68
commit be2dc2e9e2
3 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -131,6 +131,10 @@ function loadESXPlayer(identifier, playerId)
})
end
table.sort(userData.inventory, function(a, b)
return a.label < b.label
end)
-- Group
if result[1].group then
userData.group = result[1].group
@@ -138,10 +142,6 @@ function loadESXPlayer(identifier, playerId)
userData.group = 'user'
end
table.sort(userData.inventory, function(a, b)
return a.label < b.label
end)
-- Loadout
if result[1].loadout and result[1].loadout ~= '' then
local loadout = json.decode(result[1].loadout)
@@ -184,12 +184,12 @@ function loadESXPlayer(identifier, playerId)
xPlayer.triggerEvent('esx:playerLoaded', {
accounts = xPlayer.getAccounts(),
coords = xPlayer.getCoords(),
identifier = xPlayer.identifier,
identifier = xPlayer.getIdentifier(),
inventory = xPlayer.getInventory(),
job = xPlayer.getJob(),
loadout = xPlayer.getLoadout(),
maxWeight = xPlayer.maxWeight,
money = xPlayer.getMoney(),
money = xPlayer.getMoney()
})
xPlayer.triggerEvent('esx:createMissingPickups', ESX.Pickups)