mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Update player.lua
Fix for non-existent `variables` field in `ESX.PlayerData`
This commit is contained in:
@@ -199,6 +199,8 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
---@return nil
|
||||
function self.set(k, v)
|
||||
self.variables[k] = v
|
||||
|
||||
self.triggerEvent('esx:updatePlayerData', 'variables', self.variables)
|
||||
end
|
||||
|
||||
---@param k string
|
||||
@@ -968,4 +970,4 @@ local function runStaticPlayerMethod(src, method, ...)
|
||||
|
||||
return xPlayer[method](...)
|
||||
end
|
||||
exports("RunStaticPlayerMethod", runStaticPlayerMethod)
|
||||
exports("RunStaticPlayerMethod", runStaticPlayerMethod)
|
||||
|
||||
Reference in New Issue
Block a user