> For the complete documentation index, see [llms.txt](https://hyper-9.gitbook.io/hyper-inventory/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-inventory/exports.md).

# Export

Hyper\_Inventory มี 24 export แบ่งเป็น 6 กลุ่ม และมี 25 resource ในเซิร์ฟเรียกใช้อยู่แล้ว ใช้ตารางแรกเลือก export ตามเมนูที่กำลังทำ แล้วกดเข้าหน้ากลุ่มเพื่อดู parameter และตัวอย่างโค้ด

```lua
exports["Hyper_Inventory"]:<ชื่อ export>(...)
```

## เลือก export ตามเมนูที่จะทำ

| ถ้าจะทำเมนู / ระบบ                                         | ใช้ export                                                                                         | ฝั่ง    | ตัวอย่างในเซิร์ฟ                                  |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------- | ------------------------------------------------- |
| ร้านค้า, ตลาด, รางวัล, กาชา — ให้การ์ดไอเทมสีตรงกับกระเป๋า | [`GetRarityInfo`](/hyper-inventory/exports/rarity.md)                                              | ทั้งสอง | Hyper\_Shop, Hyper\_Market, Hyper\_Airdrop        |
| tooltip / การ์ดรายละเอียดไอเทมแบบเดียวกับกระเป๋า           | [`GetItemDetail`, `GetItemDescription`, `GetItemCategoryInfo`](/hyper-inventory/exports/rarity.md) | ทั้งสอง | Hyper\_Crafting                                   |
| HUD หรือ UI ที่ต้องใช้สี rarity ทั้งชุด                    | [`GetRarityPalette`](/hyper-inventory/exports/rarity.md)                                           | ทั้งสอง | Hyper\_Bountyhunt, Hyper\_Gacha                   |
| ท้ายรถ, ตู้เซฟ, ตู้บ้าน ที่เก็บของลง DB เอง                | [`OpenStashExternal` + `RefreshStash`](/hyper-inventory/exports/stash.md)                          | server  | Hyper\_Garage, Hyper\_Vault                       |
| เปิดกระเป๋าผู้เล่นคนอื่นเป็นตู้ (แอดมิน, ปล้น/ค้นตัว)      | [`OpenStashExternal` + `RefreshStash`](/hyper-inventory/exports/stash.md)                          | server  | Hyper\_Admin, Hyper\_Thief                        |
| ตู้ชั่วคราว ไม่ต้องเซฟ                                     | [`OpenStash`](/hyper-inventory/exports/stash.md)                                                   | server  | —                                                 |
| ติดตรา "ใช้งานอยู่" บนไอเทม (ลำโพง, ของติดตัว)             | [`AddBadge` / `RemoveBadge`](/hyper-inventory/exports/badge.md)                                    | server  | Hyper\_Music, Hyper\_Attacher                     |
| ไอเทมมีวันหมดอายุ → ขึ้นแผง "หมดอายุ"                      | [`AddBadge`](/hyper-inventory/exports/badge.md) key `expired`                                      | server  | Hyper\_Expire                                     |
| เปิดเมนูของตัวเอง (NUI) ทับกระเป๋า                         | [`CloseInventory`](/hyper-inventory/exports/control.md) ก่อนเปิด                                   | client  | Hyper\_Skinui, Hyper\_Thief, Hyper\_Profilestatus |
| ซื้อ/ขาย/โอนรถ                                             | [`InvalidateKeys`](/hyper-inventory/exports/cache.md)                                              | server  | Hyper\_Gang                                       |
| ร้านเสื้อผ้า, กาชาเครื่องประดับ                            | [`InvalidateAccessories`](/hyper-inventory/exports/cache.md)                                       | server  | Hyper\_Skinui                                     |
| ระบบสกินอาวุธ                                              | [`SetSkinnable`, `ApplyCustomImage`, `ResetCustomImage`](/hyper-inventory/exports/skin.md)         | client  | Hyper\_Weaponskin                                 |

## Export ทั้งหมด

| กลุ่ม                                                       | Export                                                                                                                        | ฝั่ง    |
| ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------- |
| [ตู้เก็บของ (Stash)](/hyper-inventory/exports/stash.md)     | OpenStash, OpenStashExternal, RefreshStash, GetStashItems, SetStashItems                                                      | server  |
| [Badge บนไอเทม](/hyper-inventory/exports/badge.md)          | AddBadge, RemoveBadge                                                                                                         | server  |
| [ล้าง cache](/hyper-inventory/exports/cache.md)             | InvalidateKeys, InvalidateAccessories                                                                                         | server  |
| [ควบคุมกระเป๋า](/hyper-inventory/exports/control.md)        | OpenInventory, CloseInventory, IsOpen, SetVehicleKeys                                                                         | client  |
| [สกินและรูปการ์ด](/hyper-inventory/exports/skin.md)         | SetSkinnable, ApplyCustomImage, ResetCustomImage                                                                              | client  |
| [Rarity และข้อมูลไอเทม](/hyper-inventory/exports/rarity.md) | GetRarity, GetRarityColor, GetRarityInfo, HasRarity, GetRarityPalette, GetItemDescription, GetItemCategoryInfo, GetItemDetail | ทั้งสอง |

## Resource ที่เชื่อมอยู่แล้ว

| Resource                                                                                                                                                       | Export ที่ใช้                                                         | ใช้ทำอะไร                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------- |
| Hyper\_Garage                                                                                                                                                  | OpenStashExternal, RefreshStash                                       | ท้ายรถ                                   |
| Hyper\_Vault                                                                                                                                                   | OpenStashExternal, RefreshStash                                       | ตู้เซฟ                                   |
| Hyper\_Admin                                                                                                                                                   | OpenStashExternal, RefreshStash, GetRarityInfo                        | เปิดกระเป๋าผู้เล่นจากเมนูแอดมิน          |
| Hyper\_Music                                                                                                                                                   | AddBadge, RemoveBadge                                                 | ตราลำโพงที่กำลังเปิด                     |
| Hyper\_Attacher                                                                                                                                                | AddBadge, RemoveBadge, GetRarityInfo                                  | ตราของที่ติดตัว                          |
| Hyper\_Weaponskin                                                                                                                                              | SetSkinnable, ApplyCustomImage, ResetCustomImage                      | ปุ่ม "สกิน" และรูปการ์ดอาวุธ             |
| Hyper\_Skinui                                                                                                                                                  | CloseInventory, InvalidateAccessories                                 | ร้านเสื้อผ้า                             |
| Hyper\_Thief                                                                                                                                                   | OpenStashExternal, RefreshStash, CloseInventory                       | ปล้น / ค้นตัว — เปิดกระเป๋าเหยื่อเป็นตู้ |
| Hyper\_Expire                                                                                                                                                  | AddBadge, RemoveBadge                                                 | ตราหมดอายุ → แผง "หมดอายุ"               |
| Hyper\_Profilestatus                                                                                                                                           | CloseInventory, GetRarityInfo                                         | โปรไฟล์ / เจม                            |
| Hyper\_Gang                                                                                                                                                    | InvalidateKeys                                                        | โอนรถแก๊ง                                |
| Hyper\_Crafting                                                                                                                                                | GetItemDetail, GetItemDescription, GetItemCategoryInfo, GetRarityInfo | tooltip สูตรคราฟต์                       |
| Hyper\_Gacha                                                                                                                                                   | HasRarity, GetRarityColor, GetRarityPalette                           | สีรางวัลกาชา                             |
| Hyper\_Bountyhunt                                                                                                                                              | GetRarityPalette                                                      | สี HUD                                   |
| Hyper\_Fishing                                                                                                                                                 | GetRarity, GetRarityInfo                                              | สีปลา                                    |
| Hyper\_Shop, Hyper\_Market, Hyper\_Economy, Hyper\_Notifyall, Hyper\_Jobagency, Hyper\_Event, Hyper\_Airdrop, Hyper\_Warzone, Hyper\_TradingJobs, Hyper\_Heist | GetRarityInfo                                                         | สีการ์ดไอเทม                             |

ยังไม่มี resource ไหนเรียก OpenStash, GetStashItems, SetStashItems, OpenInventory, IsOpen และ SetVehicleKeys

{% hint style="info" %}
export ฝั่ง client ทั้ง 7 ตัวถูกส่งผ่าน Hyper\_Check Code Vault (`hyper_vault_export` ใน fxmanifest) — ถ้าเพิ่ม export ฝั่ง client ใหม่ ต้องเพิ่มชื่อในรายการนั้นด้วย ไม่งั้น resource อื่นเรียกไม่ได้
{% endhint %}


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://hyper-9.gitbook.io/hyper-inventory/exports.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
