Client
Global variables
All variables available on the client side inside the ESX Object.
ESX.PlayerData
This is the player data object. See the Player Data page for more information.
ESX.PlayerLoaded
Is the player and his character loaded?
Example
if ESX.PlayerLoaded then
print('Player is loaded')
end
ESX.playerId
The player’s local id, basically the same as PlayerId()
.
ESX.serverId
The player’s server id, same as GetPlayerServerId(PlayerId())
.