> For the complete documentation index, see [llms.txt](https://hyper-9.gitbook.io/hyper-notifyall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyper-9.gitbook.io/hyper-notifyall/overview.md).

# Hyper\_Notifyall

Hyper\_Notifyall คือระบบแจ้งเตือนกลางของเซิร์ฟเวอร์ — สคริปต์อื่นเรียก export เส้นเดียวแล้วได้การ์ดแจ้งเตือน หลอดโหลด TextUI และประกาศกลางจอ ที่หน้าตาเหมือนกันทั้งเซิร์ฟ โดยไม่ต้องมี NUI ของตัวเอง

ปัจจุบันมี **85 resource** ในเซิร์ฟเวอร์เรียกใช้งานอยู่ ตั้งแต่ระบบกระเป๋า งานอาชีพ ร้านค้า ไปจนถึงอีเวนต์

![การ์ดแจ้งเตือนทั้ง 4 ชนิดพื้นฐาน](https://635491022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj7e7WVUElXSOzNYVvDv2%2Fuploads%2FNB5V3njLAKcNUIxyxcEP%2F01_notify_types.png?alt=media)

## ข้อมูลทั่วไป

| หัวข้อ             | ค่า                                 |
| ------------------ | ----------------------------------- |
| เวอร์ชัน           | 1.1.0                               |
| เฟรมเวิร์ก         | ESX (`es_extended`)                 |
| ต้องมี             | `es_extended`, `Hyper_Check`        |
| หน้า NUI           | `html/index.html`                   |
| Export ฝั่ง client | 20 รายการ                           |
| Export ฝั่ง server | 8 รายการ                            |
| ธีมสี              | 7 ธีม สลับที่ `Config.Theme`        |
| ชนิดการ์ดแจ้งเตือน | 10 ชนิด                             |
| ตำแหน่งวางการ์ด    | 8 มุมจอ                             |
| ภาษา               | ไทย (ฟอนต์ Kanit ฝังในตัว resource) |

## ทำอะไรได้บ้าง

| ระบบ            | สรุป                                                               |
| --------------- | ------------------------------------------------------------------ |
| การ์ดแจ้งเตือน  | 10 ชนิด วางได้ 8 มุมจอ ไฮไลต์คำในข้อความได้                        |
| ไอเทมเข้า–ออก   | การ์ดไอเทมพร้อมสีความหายาก รวมหลายชิ้นเป็นใบเดียว                  |
| โทรศัพท์        | การ์ดสายเข้าแบบค้างจนกว่าจะรับ/วาง                                 |
| ประกาศกลางจอ    | 7 หัวข้อประกาศ + เมนูให้แอดมินพิมพ์เอง + ประกาศอัตโนมัติ 7 ข้อความ |
| รีสตาร์ท / ลบรถ | ตารางเวลาอัตโนมัติ + นับถอยหลัง + Discord webhook                  |
| เลขนำโชค        | สุ่ม ID ผู้โชคดีทุกครั้งที่เซิร์ฟเปิด แล้วแจกรางวัล                |
| TextUI          | แบบติดหน้าจอ และแบบลอยตามพิกัดในโลก                                |
| หลอดโหลด        | แบบแถบยาว และแบบเพชรจับเวลา วางได้ 9 ตำแหน่ง                       |
| การ์ดโปรไฟล์    | ดึงรูป Discord หรือ Steam ของผู้เล่นมาแสดง                         |

## เริ่มต้นเร็ว

ใส่ใน `server.cfg`

```
ensure Hyper_Notifyall
```

แล้วเรียกจากสคริปต์ไหนก็ได้

```lua
exports['Hyper_Notifyall']:sendNotify({
    text = {
        title = 'แจ้งเตือน',
        message = 'คุณอยู่ห่างจากรถ %s เกินไป',
        highlight = 'RRR 999',
    },
    type = 'error',
    time = 5 * 1000,
    layout = 'topRight',
})
```

## ไปต่อ

* [ฟีเจอร์หลัก](/hyper-notifyall/features.md) — ทุกระบบพร้อมค่าใน config ที่คุมมัน
* [การตั้งค่า](/hyper-notifyall/config.md) — ไฟล์ config ทั้ง 4 ไฟล์และค่าที่ปรับบ่อย
* [หน้าจอ UI](/hyper-notifyall/ui-screens.md) — ภาพจริงทั้ง 14 โหมด
* [ธีมสี](/hyper-notifyall/themes.md) — 7 ธีมพร้อมตารางสี
* [Export](/hyper-notifyall/exports.md) — ตารางว่าจะทำอะไรต้องใช้ export ตัวไหน


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hyper-9.gitbook.io/hyper-notifyall/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
