print(identifyexecutor()) -- แสดงผลลัพธ์ที่ตรวจสอบตัวรันโค้ดในคอนโซล (Console)
if identifyexecutor() == "Seriality v1" then
print("Seriality is used.")
else
print("Seriality is not used.")
end
Set FPS Cap
<void> setfpscap(<uint> Cap)
Get HWID
<void> gethwid(<void>) - hwid_get(<void>)
ตัวอย่าง - Get HWID
print(gethwid()) -- แสดง Hardware ID (HWID) ของคุณในคอนโซล (Console)
Seriality_Loaded
<boolean> Seriality_Loaded(<void>)
ตัวอย่าง - Seriality_Loaded
โค้ดนี้จะตรวจสอบตัวแปร Seriality_Loaded ที่อาจถูกกำหนดขึ้นในการโหลดของเกม หาก Seriality_Loaded มีค่าเป็น true โค้ดจะพิมพ์ข้อความ "Seriality has loaded!" ในคอนโซล (Console) และหาก Seriality_Loaded ไม่ถูกกำหนดหรือมีค่าเป็น false โค้ดจะพิมพ์ข้อความ "Seriality did not load." ในคอนโซล (Console)
if Seriality_Loaded then
print('Seriality has loaded!')
else
print('Seriality did not load.')
end
Getvsync
<uint> getvsync(<void>)
ตัวอย่าง - Getvsync
-- คำสั่งนี้เรียกใช้ฟังก์ชัน getvsync() เพื่อรับค่า FPS ที่ได้รับจากการตั้งค่า Vertical Sync (Vsync) ของคอมพิวเตอร์หรือจอหน้าจอ
local fps = getvsync()
-- เปรียบเทียบค่า FPS ที่ได้รับจากฟังก์ชัน getvsync() ว่าเป็น "59" หรือ "60" หรือไม่
if fps == "59" or fps == "60" then
-- หากค่า FPS เป็น "59" หรือ "60" จะแสดงข้อความ "Your FPS is capped." ซึ่งหมายความว่า FPS ได้ถูกจำกัดควบคุม (capped)
print("Your FPS is capped.")
else
-- หากค่า FPS ไม่ใช่ "59" หรือ "60" จะแสดงข้อความ "Your FPS is not capped." ซึ่งหมายความว่า FPS ไม่ได้ถูกจำกัดควบคุม (uncapped)
print("Your FPS is not capped.")
end