> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zonely.gen.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# ZonelyCoreFiveM

> 准备 FiveM 源和 HTTP 脚本连接 。

ZonelyCoreFiveM 在 FiveM 资源中处理由网站发送的命令。面板记录使用服务器地址、HTTP 端口和共享 API Key。

## 放置源

[项目文件](https://github.com/zonely-gen-tr/ZonelyCoreFiveM) **resources/zonelycorefivem/** 把它放进文件夹里 **单曲**, **Server.js** 财务报告和已审计财务报表 **config.json** 创建文件源

```text title="服务器.cfg \ 资源启动" theme={"theme":"css-variables"}
ensure zonelycorefivem
```

## 编辑密钥和权限

```json title="配置.json —— 相关字段" theme={"theme":"css-variables"}
{
  "apiKey": "KENDI_UZUN_BENZERSIZ_ANAHTARIN",
  "allowedOrigins": ["https://siteadresin.example"],
  "ipWhitelist": ["203.0.113.10"],
  "whitelist": ["say", "add_principal", "remove_principal"],
  "logCommands": true
}
```

**apiKey** 将数值与 API 板上的关键区域。 **未提交** 地址, 地址, 地址, 地址, **ipWhitelist** 网络服务器的IP地址, **whitelist** 确定允许的命令。使用您自己的服务器的IP信息,而不是IP样本。

## 添加( Y) HTTP 链接

在管理面板中打开 **商店 → 服务器**。添加新服务器或编辑对应记录，选择 **ZonelyCoreFiveM**。输入可从外部访问的 FiveM TCP/HTTP 端口。资源使用 **SetHttpHandler**；端口由 FiveM 启动配置中的 **endpoint\_add\_tcp** 和主机转发规则决定。

[![Server IP Address, Add-on Port, API Key](https://mintcdn.com/zonely-a8cd49e7/48qkn-UhPOPy1-Dl/images/panel/payments-connections-site-guide-20261027/conn-fivem-zh-CN.png?fit=max\&auto=format\&n=48qkn-UhPOPy1-Dl\&q=85\&s=992909491793a360057f4b5d76305685)](https://docs.zonely.gen.tr/images/panel/payments-connections-site-guide-20261027/conn-fivem-zh-CN.png)

> [card] 1. 服务器IP地址
>
> 在服务器配置中输入计数器。

> [card] 2. 加装入港
>
> 在服务器配置中输入计数器。

> [card] 3. API 密钥
>
> 在服务器配置中输入计数器。

重新启动源并连接产品到相应的服务器记录。产品命令的第一个字应该属于源允许的命令。

## ∮ 错却我∮

检查 API 401 响应中的密钥和服务器时钟; 403 响应中的 IP, 来源和命令权限。 请检查源文件夹名称和源头是否从 404 响应中开始 。 请参见外部 TCP 时间。

[焊接配置](https://github.com/zonely-gen-tr/ZonelyCoreFiveM/blob/main/config.json) · [服务器](https://docs.zonely.gen.tr/zh-CN/guides/servers.md#zonelycorefivem) · [连接和工具](https://docs.zonely.gen.tr/zh-CN/integrations/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.