Skip to main content

Player Related Properties

xPlayer.cid

Reflects the xPlayer's cid property in database (character unique id)

xPlayer.cid ---@type string

xPlayer.accounts

Reflects an array containing all of the xPlayer's accounts

xPlayer.accounts ---@type table

xPlayer.group

Reflects the admin/user level group of the xPlayer

xPlayer.group ---@type string

xPlayer.groups

Reflects a table containing groups name and groups grade that the xPlayer is a part of

xPlayer.groups ---@type table<string, number>

xPlayer.identifier

Reflects the xPlayer's identifier property in database

xPlayer.identifier ---@type string

xPlayer.license

Reflects the xPlayer's rockstar license identifier

xPlayer.license ---@type string

xPlayer.job

Reflects the xPlayer's job object containing some job-related info about the player

xPlayer.job ---@type table<string, any>

xPlayer.name

Reflects the player's name identified by FiveM

xPlayer.name ---@type string

xPlayer.source

Reflects the xPlayer's server id

xPlayer.source ---@type number

xPlayer.playerId

Reflects the xPlayer's server id

xPlayer.playerId ---@type number

xPlayer.weight

Reflects the xPlayer's current inventory weight

xPlayer.weight ---@type number

xPlayer.maxWeight

Reflects the maximum weight the xPlayer can carry in its inventory

xPlayer.maxWeight ---@type number

xPlayer.routingBucket

Reflects xPlayer's routing bucket id

xPlayer.routingBucket ---@type number