# Tebex Integration

***

{% hint style="info" %}
**Info:** You can sell properties through Tebex and assign them to players automatically after purchase.
{% endhint %}

#### 1. Tebex Resource

Download and configure the official [tebex resource](https://github.com/tebexio/Tebex-FiveM) to integrate product sales with your FiveM server.

#### 2. Create a Property

Use the `/housing` admin menu to create a new property you want to sell. Once saved:

1. Open your database and copy the `id` of that property from the `houses` table
2. This `id` will be used as the property identifier in the Tebex command

#### 3. Create Package on your Tebex

In your Tebex package, set up a command

```asciidoc
tebexProperty {sid} 152
```

* `{sid}` is automatically replaced by Tebex with the player’s server ID
* `152` is the property ID from your database

<figure><img src="/files/3YSzXOAHdsYLBl9XLBUF" alt=""><figcaption></figcaption></figure>

#### 4. Done!

Once someone purchases your package, Tebex will trigger the command and the player will receive their property.


---

# 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.vames-store.com/assets/vms_housing/guides/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.
