> For the complete documentation index, see [llms.txt](https://docs.vames-store.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vames-store.com/assets/vms_housing/guides/tebex-integration.md).

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