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

> Prepare FiveM source and HTTP script connection.

ZonelyCoreFiveM works on FiveM source of commands sent through the site. Server address, HTTP port and common API Key is used in panel recording.

## Place the source

[Project files](https://github.com/zonely-gen-tr/ZonelyCoreFiveM) **resources/zonelycorefivem/** Put it in the folder. **fxmanifest.lua**, **Server.js** and **config.json** should be directly in this folder. Add source to start file:

```text title="server.cfg · resource startup" theme={"theme":"css-variables"}
ensure zonelycorefivem
```

## Edit keys and permissions

```json title="config.json · relevant fields" 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** Match the value with the API Key area on the panel. **unsubmittent** site addresses, **ipWhitelist** IP address of the web server, **whitelist** determines the permitted commands. Use the IP information of your own server instead of the sample IP.

## Add HTTP link

Management panel **Store → Servers** open the part. Add new server or edit the corresponding record. **ZonelyCoreFiveM** Select. Enter FiveM’s TCP/HTTP port accessed from outside. Source **SetHttpHandler** uses; port FiveM in the initial setting **endpoint\_add\_tcp** and is determined by hosting redirect.

[![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-en.png?fit=max\&auto=format\&n=48qkn-UhPOPy1-Dl\&q=85\&s=61c5ead8f476b5587f35797db6807a7d)](https://docs.zonely.gen.tr/images/panel/payments-connections-site-guide-20261027/conn-fivem-en.png)

> [card] 1. Server IP Address
>
> Enter the counterness in your server configuration.

> [card] 2. Add-on Port
>
> Enter the counterness in your server configuration.

> [card] 3. API Key
>
> Enter the counterness in your server configuration.

Restart the source and connect the product to the corresponding server record. The first word of the product command should be among the commands allowed in the source.

## Take errors

Check API Key and server clock in 401 response; IP, origin and command permissions in 403 response. Check the source folder name and source start in 404 response. See external TCP access over time.

[Welding configuration](https://github.com/zonely-gen-tr/ZonelyCoreFiveM/blob/main/config.json) · [Servers](https://docs.zonely.gen.tr/en/guides/servers.md#zonelycorefivem) · [Connections and tools](https://docs.zonely.gen.tr/en/integrations/overview.md)


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