> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/qbcore/ak47_qb_vipshop/tebex.md).

# Tebex

## **Tebex Connection**

**Step 1: Connect your server via the Tebex Control Panel**

1. Go to **Integrations > Game Servers**.
2. Click **"Connect Game Server"** (top-right).
3. Enter a recognizable **name for your server** and click **Continue**.

**Step 2: Add the secret key to your server.cfg**

Copy the **secret key** shown in the instructions and paste the following line into your `server.cfg` file:

```
sv_tebexSecret "YOUR_TEBEX_SECRET_KEY"
```

**Step 3: Restart your FiveM server**

Restart your server as you normally would via your control panel or console

**Step 4: Verify the integration**

Return to the Tebex Control Panel and press **Continue**. If successful, your server is now linked to your Tebex store.

* If the **Continue** button doesn’t activate, check your FiveM **server console for errors**, correct any issues, and try again.
* If needed, click **Skip** and return to test later.

## Create Package

1. Click on `Game Server Commands`&#x20;

<div align="left"><figure><img src="/files/7VA5rAYqTmnN42kAggZi" alt=""><figcaption></figcaption></figure></div>

2. Select your connected server

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

3. Click on `Add Command`

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

4. Copy this command and past there

```
on_purchase_vcoin {"transid": "{transaction}", "coin": "300"}
```

Here 300 is the number of coin you are giving. Set that as you need.

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

5. Click on the setting icon

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

6. In the Require Player To Be Online, set this as `Execute the command even if the player is offline`

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

7. Finish the package creation

### Note:

Player have to wait up-to 10 minutes after the purchase to redeem the code.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.menanak47.com/qbcore/ak47_qb_vipshop/tebex.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
