mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
refactor(server/main): Do not store skin in PlayerData, send it separately
This commit is contained in:
+1
-2
@@ -304,9 +304,8 @@ function loadESXPlayer(identifier, playerId, isNew)
|
|||||||
loadout = xPlayer.getLoadout(),
|
loadout = xPlayer.getLoadout(),
|
||||||
maxWeight = xPlayer.getMaxWeight(),
|
maxWeight = xPlayer.getMaxWeight(),
|
||||||
money = xPlayer.getMoney(),
|
money = xPlayer.getMoney(),
|
||||||
skin = userData.skin,
|
|
||||||
dead = userData.dead
|
dead = userData.dead
|
||||||
}, isNew)
|
}, isNew, userData.skin)
|
||||||
|
|
||||||
xPlayer.triggerEvent('esx:createMissingPickups', ESX.Pickups)
|
xPlayer.triggerEvent('esx:createMissingPickups', ESX.Pickups)
|
||||||
xPlayer.triggerEvent('esx:registerSuggestions', ESX.RegisteredCommands)
|
xPlayer.triggerEvent('esx:registerSuggestions', ESX.RegisteredCommands)
|
||||||
|
|||||||
Reference in New Issue
Block a user