> For the complete documentation index, see [llms.txt](https://docs.zobyeteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zobyeteam.com/resource/zobyeteam_notify/connection/exportsfunction.md).

# Exports function

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

{% code title="client - side" %}

```lua
exports['zobyeteam_notify']:send({type = 'info', content = 'ข้อความ', time = 5000})
```

{% endcode %}

{% code title="server - side" %}

```lua
TriggerClientEvent('zobyeteam_notify:send', playerId, {type = 'info', content = 'ข้อความ', time = 5000})
```

{% endcode %}

Function นี้จะเป็นการเรียกใช้ zobyeteam\_notify โดยรับ Parameters เพื่อนำไปแสดงผลได้แก่

* type (ประเภทของการแจ้งเตือน ได้แก่ info, success, warning)
* content (ข้อความส่วนเนื้อหา)
* time (เวลาในการแสดง หน่วยเป็น ms)

## การใช้งานกับ Twitter

```lua
TriggerClientEvent('zobyeteam_notify:sendTwitter', playerId, {
    action = 'sendTwitter', -- ห้ามแก้ไข
    profile =  'url รูปโปรไฟล์',
    name =  'ชื่อที่จะแสดงผล',
    message =  'ข้อความ',
    image = 'url รูปภาพ',
    type = 'twitterNormal', -- ห้ามแก้ไข
})
```
