Miscellaneous

gethwid

Returns Real's hardware identifier string.

ไวยากรณ์

gethwid(): string

Returns

ชื่อชนิดคำอธิบาย
hardwareIdstringHardware identifier string.

คำอธิบาย

Returns Real's hardware identifier string.

เรียกโดยไม่ต้องมี parameter ฟังก์ชันอ่าน context ที่ต้องใช้จาก runtime state ปัจจุบัน

ส่งคืน hardwareId (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้

ตัวอย่าง

Read Real's cached hardware identifier string.

local hardwareId = gethwid()
print(hardwareId)