# 午夜使用Lua教程

**官网论坛下载午夜Lua文件**

**下载后解压,然后打开安装器**

![](/files/15Wcz571pkVQm7c1TY01)

![](/files/E6XUAcQSDVnsVHY6bnY0)

**游戏内操作：**

**Lua-选择你需要运行的Lua-输入相关命令使用**

{% hint style="info" %} <mark style="color:blue;">**使用的方法是**</mark><mark style="color:blue;">**&#x20;**</mark><mark style="color:blue;">**`指令形式`**</mark><mark style="color:blue;">**&#x20;**</mark><mark style="color:blue;">**在聊天框中输入指令(需确保你的注入法输入的 / 是英文输入法)**</mark>

<mark style="color:blue;">**前缀是/ 指令有:**</mark>`/传送 /前置 /分红 /其他`
{% endhint %}

{% hint style="danger" %} <mark style="color:red;">**不推荐新手萌新使用午夜的Lua文件，你需要在聊天框一行一行输入代码操作，难度较大**</mark>
{% endhint %}


---

# Agent Instructions: 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://docs.hzz.im/gta5/midnight/lua.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.
