exports ที่มีให้ใช้
📋 ข้อมูลทั่วไป
🔧 Exports ที่สามารถใช้งานได้
1. การดึง Shared Object สำหรับสร้าง UI แบบกำหนดเอง
-- Client Side Only
local afuStatus = exports["AFU.Status"]:getSharedObject()
-- ตัวอย่างการนำไปใช้
local hungerStatus = afuStatus.GetPlayerStatus("hunger")
local happinessStatus = afuStatus.GetPlayerStatus("happiness")
-- ค่าปัจจุบัน
local hungerValue = hungerStatus.value -- ค่าปัจจุบัน
local happinessValue = happinessStatus.value -- ค่าปัจจุบัน
-- เปอร์เซ็นต์
local hungerPercent = hungerStatus.getPercent() -- เปอร์เซ็นต์ (0-100)
local happinessPercent = happinessStatus.getPercent() -- เปอร์เซ็นต์ (0-100)
-- ส่งข้อมูลไป UI
SendNUIMessage({
type = "updateStatus",
hunger = hungerPercent,
happiness = happinessPercent
})2. การหยุดการทำงานของ Status
3. การให้ระบบ Status ทำงานต่อ
4. การตรวจสอบสถานะ Pause
5. การรักษา (Heal)
6. การรีเซ็ตค่า (Reset)
7. การดึงค่าพลังชีวิต (Get Health)
8. การดึงค่าเกราะ (Get Armor)
9. การตรวจสอบสิทธิพิเศษตามประเภท (Has Option)
10. การตรวจสอบสิทธิพิเศษเฉพาะด้าน (Has Specific Option)
Version 1.0.1
11. การตรวจสอบว่าผู้เล่นอยู่ใน Free Zone หรือไม่ (Is In Free Zone)
📝 หมายเหตุ
🔗 Dependencies
👥 ผู้พัฒนา
Last updated