> 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/akxi-lie/afk/pei-zhi.md).

# 配置

你可以在`config.lua`更改列出功能！

```lua
Config = {}

Config.Debug = false                   -- 调试模式（true = 显示挂机区范围圈，false = 不显示）

Config.Framework = 'auto'              -- 框架选择: 'qb' | 'qbx' | 'esx' | 'auto'（自动检测）

Config.Locale = 'cn'                   -- 语言选择: 'cn'（中文）| 'en'（英文）

Config.ServerName = "服务名称"          -- 服务器名

Config.UIAnchor = 'bottom-center'      -- 默认位置为 中下
-- 位置可选值：
-- 'top-left'    （左上）  'top-center'   （中上）  'top-right'    （右上）
-- 'middle-left' （左中）  'middle-center'（居中）  'middle-right' （右中）
-- 'bottom-left' （左下）  'bottom-center'（中下）  'bottom-right' （右下）

Config.AFKPoints = {
    {                                            -- 🅰️ 普通挂机区
        enabled = true,                          -- 是否启用此挂机区（false = 完全禁用）
        coords = vector3(235.0, -780.0, 30.0),   -- 挂机点坐标
        radius = 50.0,                           -- 挂机范围（米）
        label = '中庭',
        isVIP = false,                           -- false 为普通挂机区，true 为 VIP 区
        rewardInterval = 5,                      -- 挂机奖励时间（分钟）
        rewards = {                              -- type = 'money' 为金钱，'item' 为物品
            {
                type = 'money',                  -- 类型
                amount = 500,                    -- 数量
                label = '挂机津贴'
            },
            {
                type = 'item',                   -- 类型
                amount = 2,                      -- 数量
                item = 'water',                  -- 物品代码
                label = '矿泉水'
            },
            {
                type = 'item',                   -- 类型
                amount = 3,                      -- 数量
                item = 'bread',                  -- 物品代码
                label = '面包'
            },
            {
                type = 'money',                  -- 类型
                amount = 1000,                   -- 数量
                chance = 30,                     -- 概率获得（%）
                label = '幸运奖励'
            },
            -- 你可以添加更多物品/钱
        },
        blip = {
            enabled = true,                      -- 是否显示地图图标
            sprite = 280,                        -- 图标类型
            color = 5,                           -- 图标颜色
            scale = 0.8                          -- 图标大小
        },
    },
    -- ↑ 复制上方结构可以添加更多普通挂机区 ↑

    {                                            -- 💎 VIP 挂机区（建议设置在产业或房产内）
        enabled = true,                          -- 是否启用此挂机区（false = 禁用）
        coords = vector3(-300.0, -900.0, 30.0),  -- 挂机点坐标
        radius = 40.0,                           -- 挂机范围（米）
        label = 'VIP 专属',
        isVIP = true,                            -- false 为普通挂机区，true 为 VIP 区
        rewardInterval = 3,                      -- 挂机奖励时间（分钟）
        rewards = {                              -- type = 'money' 为金钱，'item' 为物品
            {
                type = 'money',                  -- 类型
                amount = 2000,                   -- 数量
                label = 'VIP工资'
            },
            {
                type = 'item',                   -- 类型
                amount = 1,                      -- 数量
                item = 'diamond',                -- 物品代码
                label = '钻石'
            },
            {
                type = 'item',                   -- 类型
                amount = 1,                      -- 数量
                item = 'weapon_pistol',          -- 物品代码 
                chance = 15,                     -- 概率获得（%）
                label = '手枪',
            },
            {
                type = 'money',                  -- 类型
                amount = 5000,                   -- 数量
                chance = 10,                     -- 概率获得（%）
                label = '大奖励'
            },
            -- 你可以添加更多物品/钱
        },
        vipPlayers = {                           -- 允许进入该VIP区的许可证列表
            'license:3bf8a88c8423a69e6a37a801ce1489bf038790a8',
            -- 你可以添加更多许可证
        },
        blip = {
            enabled = true,                      -- 是否显示地图图标
            sprite = 280,                        -- 图标类型
            color = 46,                          -- 图标颜色
            scale = 0.9                          -- 图标大小
        },
    },
    -- ↑ 复制上方结构可以添加 VIP 挂机区 ↑
}
```


---

# 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/akxi-lie/afk/pei-zhi.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.
