mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 10:48:52 +00:00
Update main.lua
Fix for non-existent `variables` field in `ESX.PlayerData`
This commit is contained in:
@@ -337,6 +337,7 @@ function loadESXPlayer(identifier, playerId, isNew)
|
||||
TriggerEvent("esx:playerLoaded", playerId, xPlayer, isNew)
|
||||
userData.money = xPlayer.getMoney()
|
||||
userData.maxWeight = xPlayer.getMaxWeight()
|
||||
userData.variables = xPlayer.variables or {}
|
||||
xPlayer.triggerEvent("esx:playerLoaded", userData, isNew, userData.skin)
|
||||
|
||||
if not Config.CustomInventory then
|
||||
|
||||
Reference in New Issue
Block a user