ระบบสำหรับการตรวจสอบข้อมูลของผู้เล่นที่จะทำให้คุณตรวจสอบข้อมูลได้ง่ายขึ้น

Item Validation

local item = self:getItem('bread', false)
print(ESX.DumpTable(item))

Parameters

ข้อมูลที่ต้องส่งไปยังฟังก์ชั่น
name
string
required
ชื่อไอเทม
validate
boolean
default:false
ตรวจสอบบน Server หรือไม่ ถ้าหากไม่กำหนดหรือ false จะตรวจสอบเฉพาะ Client

Return

สำคัญมีโอกาสเป็น nil
name
string
required
ชื่อไอเทม
label
string
required
คำแสดงทั่วไป
count
integer
required
จำนวนที่มี
rare
boolean
required
ไอเทมชิ้นนี้พิเศษหรือไม่
canRemove
boolean
required
สามารถลบออกจากกระเป๋าได้หรือไม่
limit
integer
default:-1
จำนวนที่จำกัดในการเก็บ
weight
number
default:0
น้ำหนักต่อชิ้น

Account Validation

local account = self:getAccount('money', false)
print(ESX.DumpTable(account))

Parameters

ข้อมูลที่ต้องส่งไปยังฟังก์ชั่น
name
string
required
ชื่อบัญชี
validate
boolean
default:false
ตรวจสอบบน Server หรือไม่ ถ้าหากไม่กำหนดหรือ false จะตรวจสอบเฉพาะ Client

Return

สำคัญมีโอกาสเป็น nil
name
string
required
ชื่อบัญชี
label
string
required
คำแสดงทั่วไป
money
integer
required
จำนวนเงินที่มี