Exports function
Exports function ของ zobyeteam_notify สำหรับการนำไปใช้กับทรัพยากรต่างๆ
การใช้งานทั่วไป
exports['zobyeteam_notify']:send({type = 'info', content = 'ข้อความ', time = 5000})
TriggerClientEvent('zobyeteam_notify:send', playerId, {type = 'info', content = 'ข้อความ', time = 5000})
Function นี้จะเป็นการเรียกใช้ zobyeteam_notify โดยรับ Parameters เพื่อนำไปแสดงผลได้แก่
type (ประเภทของการแจ้งเตือน ได้แก่ info, success, warning)
content (ข้อความส่วนเนื้อหา)
time (เวลาในการแสดง หน่วยเป็น ms)
การใช้งานกับ Twitter
TriggerClientEvent('zobyeteam_notify:sendTwitter', playerId, {
action = 'sendTwitter', -- ห้ามแก้ไข
profile = 'url รูปโปรไฟล์',
name = 'ชื่อที่จะแสดงผล',
message = 'ข้อความ',
image = 'url รูปภาพ',
type = 'twitterNormal', -- ห้ามแก้ไข
})
Last updated
Was this helpful?