🔄Miscellaneous Functions
IsSeriality
<boolean> IsSeriality(<void>)
ตัวอย่าง - IsSeriality
warn(IsSeriality)
Identify Executor
<string> identifyexecutor(<void>)
ตัวอย่าง - Identify Executor
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
Http Request
<table> request(<table> options)
ตัวอย่าง - Http Request
-- ทำ HTTP Request ไปที่ URL "https://httpbin.org/get" โดยใช้ Method GET
-- และกำหนด Headers เป็น "Content-Type: application/json"
-- และกำหนด Body ในรูปแบบ JSON ด้วยตัวอย่าง {Seriality = "V1"}
local Response = request({
Url = "https://httpbin.org/get",
Method = "GET",
Headers = {
["Content-Type"] = "application/json"
},
Body = game:GetService("HttpService"):JSONEncode({Seriality = "V1"})
})
-- แสดงผลลัพธ์ที่อยู่ใน Response.Body ในคอนโซล (Console)
print(Response.Body)
Last updated