# Tebex Integration

### 1. Create a Game Server

1. Go to [creator.tebex.io](https://creator.tebex.io) and log into your store.
2. In the left sidebar, navigate to **Integrations → Game Servers**.
3. Click **Add Server** and select **FiveM** as the game type.
4. Copy the **secret key** provided and add it to your `server.cfg`:

```cfg
set sv_tebexSecret "YOUR_SECRET_KEY_HERE"
```

5. Restart your server. Once verified, the server status will show **Connected**.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> The secret key links your Tebex store to your FiveM server. Never share it publicly.</p></div>

***

### 2. Create a Package

1. In your Tebex dashboard go to **Packages → New Package**.
2. Fill in the package **name**, **description**, and set the **category** to `Scripts`.
3. Under **Pricing**, set your price in EUR.
4. Set **Recurring Payment** to **Only charge the customer once**.
5. Save the package draft before adding deliverables.

***

### 3. Add FiveM Asset Delivery

1. In the package editor, scroll to the deliverables section and click **Add Deliverable → FiveM Asset**.
2. Under **FiveM Assets**, search for your escrow-protected resource and select it.
3. The asset tag will appear as:

{% hint style="info" %}
\*\*Note:\*\* Your script must be submitted to the \*\*Cfx.re Asset Escrow\*\* system before it appears here. Upload it at \[keymaster.fivem.net]\(<https://keymaster.fivem.net>) first.
{% endhint %}

***

### 4. Add Game Server Commands

1. In the same package, click **Add Deliverable → Game Server Commands**.
2. In the **Game Servers** dropdown, select your connected server.
3. Click **Add Command** and set the trigger to **When the package is purchased**.
4. Enter your command using the `{transaction}` variable:

```
tebex_command_ars_yourscript-give-slot {transaction}
```

<figure><img src="/files/qWje9gWi7lTB1JRKGG7e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7Yn1ZC7SdtRjpn4IaVXx" alt=""><figcaption></figcaption></figure>


---

# 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.arius-scripts.com/site/documentation/resources/multicharacter/tebex-integration.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.
