> For the complete documentation index, see [llms.txt](https://ak-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ak-scripts.gitbook.io/docs/yi-lai/markdown/an-zhuang.md).

# 安装

## 🛠️ 安装说明

> 本页将指导你如何正确安装并启用 **`ak-lib`**&#x20;

***

### 📥 一、从 Tebex 免费获取

#### ✅ 免费购买地址

前往官方 Tebex 页面免费获取 **ak-lib**：

🔗 [https://ak-scripts.tebex.io/package/7065567](https://ak-scripts.tebex.io/package/7065567?utm_source=chatgpt.com)

#### 🛒 获取步骤

1. 打开上方链接，进入 **`ak-lib`**  页面。
2. 点击 **“`加入购物车`”**。
3. 登录或注册你的  **`CFX 账户`**。
4. 完成“**`结账`**”流程（该项目为免费）。
5. 购买完成后，访问官方资产门户：\
   🔗 <https://portal.cfx.re/assets/granted-assets>
6. 在 **Granted Assets（已授权资源）** 列表中找到 **`ak-lib`**，点击下载。

下载后你将获得一个 `.zip` 压缩包。

***

### 📦 二、安装到服务器

1. 解压下载的文件，将文件夹命名为：

   ```
   ak-lib
   ```
2. 放入你的服务器资源目录：

   ```
   resources/[ak]/ak-lib
   ```
3. 在 `server.cfg` 中添加：

   ```cfg
   ensure ak-lib
   ```

> 💡 建议放在所有依赖它的脚本之前加载。


---

# 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:

```
GET https://ak-scripts.gitbook.io/docs/yi-lai/markdown/an-zhuang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
