ZOBYETEAM Documentation
  • คู่มือการใช้งาน (Document)
  • 📂Resource
    • ZOBYETEAM_GARAGE
      • Setup
        • oxmysql (จำเป็น)
      • Connections
        • Add vehicle
        • Customize vehicle
      • Common problems
        • ปัญหาน้ำมันไม่บันทึก
    • ZOBYETEAM_CARCUSTOMS
      • Setup
      • Connections
      • Admin commands
    • ZOBYETEAM_CARPARK
      • Setup
    • ZOBYETEAM_ECONOMY
      • Setup
      • Connections
    • ZOBYETEAM_INVENTORY
      • Setup
      • Connections
        • ZOBYETEAM_TRUNK
        • ZOBYETEAM_SAFEBOX
      • Common problems
    • ZOBYETEAM_PROFILE
      • Setup
      • Common problems
    • ZOBYETEAM_PARTY
      • Connections
        • Exports function
        • bt_alljob
      • Common problems
    • ZOBYE_MUSICBOX
      • Config
    • ZOBYETEAM_NOTIFY
      • Connections
        • Exports function
      • Common problems
  • ✉️Contact
    • Github
    • Discord
    • Facebook
Powered by GitBook
On this page
  • การใช้งานทั่วไป
  • การใช้งานกับ Twitter

Was this helpful?

  1. Resource
  2. ZOBYETEAM_NOTIFY
  3. Connections

Exports function

Exports function ของ zobyeteam_notify สำหรับการนำไปใช้กับทรัพยากรต่างๆ

การใช้งานทั่วไป

client - side
exports['zobyeteam_notify']:send({type = 'info', content = 'ข้อความ', time = 5000})
server - side
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', -- ห้ามแก้ไข
})
PreviousConnectionsNextCommon problems

Last updated 2 years ago

Was this helpful?

📂