General
ฟังก์ชันฝั่ง Server สำหรับจัดการข้อมูลทั่วไปของผู้เล่นผ่าน xPlayer (variables, identity, coords, bucket, metadata, notifications, transactions)
General (xPlayer)
ก่อนเริ่ม (แนะนำ)
local xPlayer = ESX.GetPlayerFromId(source)Variables (Custom per-player variables)
xPlayer.get
Name
Type
Description
Type
Description
xPlayer.set
Name
Type
Description
Type
Description
Event
Parameters
Identity & Permissions
xPlayer.getName
Type
Description
xPlayer.setName
Name
Type
Description
Type
Description
xPlayer.getIdentifier
Type
Description
xPlayer.getGroup
Type
Description
xPlayer.setGroup
Name
Type
Description
Type
Description
Position & Status
xPlayer.getCoords
Name
Type
Description
Type
Description
xPlayer.setCoords
Name
Type
Description
Type
Description
xPlayer.updateCoords
Type
Description
xPlayer.getHealth
Type
Description
xPlayer.getArmor
Type
Description
Routing buckets
xPlayer.getBucket
Type
Description
xPlayer.setBucket
Name
Type
Description
Type
Description
Metadata
xPlayer.getMetadata
Name
Type
Description
Type
Description
xPlayer.getAllMetadata
Type
Description
xPlayer.setMetadata
Name
Type
Description
Type
Description
Utilities
xPlayer.kick
Name
Type
Description
xPlayer.showNotification
Name
Type
Description
xPlayer.triggerEvent
Name
Type
Description
Transactions
xPlayer.transaction
Name
Type
Description
Type
Description
Last updated