Player

Functions

GetPlayer(source)

ดึงข้อมูลผู้เล่นจาก source ID

Parameter
Type
Description

source

number

ไอดีของผู้เล่น

Returns: AFUCorePlayer หรือ nil ถ้าไม่พบผู้เล่น

local player = AFUCore.GetPlayer(1)

GetPlayerFromId(source)

เหมือนกับ GetPlayer แต่มีไว้เพื่อความเข้ากันได้กับระบบอื่นๆ

Parameter
Type
Description

source

number

ไอดีของผู้เล่น

Returns: AFUCorePlayer หรือ nil ถ้าไม่พบผู้เล่น

local player = AFUCore.GetPlayerFromId(1)

GetPlayerFromIdentifier(identifier)

ดึงข้อมูลผู้เล่นจาก identifier ใดๆ ที่ผู้เล่นมี

Parameter
Type
Description

identifier

string

identifier ของผู้เล่น (เช่น steam:xxx, discord:xxx, xbl:xxx)

Returns: AFUCorePlayer หรือ nil ถ้าไม่พบผู้เล่น