Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
Player
Theplayer module is available on the client. It is automatically exposed as sure.player when @sure_lib/init.lua runs on the client.
Shortcuts
| Property | Returns |
|---|---|
player.data | Current ESX.GetPlayerData() table. |
player.loaded | Current ESX.IsPlayerLoaded() result. |
player.ped | PlayerPedId(). |
player.health | GetEntityHealth(PlayerPedId()). |
player.armor | GetEntityArmor(PlayerPedId()). |
player.coords | GetEntityCoords(PlayerPedId()). |
player.vehicle | cache.vehicle. |
player.serverId | cache.serverId. |
player.currentVehicleProperties | ESX.Game.GetVehicleProperties(cache.vehicle) or nil. |
player.waitUntilLoaded() | Waits until ESX reports that the player is loaded. |
Inventory, accounts, and loadout lookup
The module returns live ESX lists and adds string-key lookup helpers.Loadout lookup normalizes weapon names, so
pistol, weapon_pistol, and WEAPON_PISTOL resolve to the same ESX loadout entry.