# 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="https://3701050178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6y0J5nnTjSyc65fbCvIU%2Fuploads%2FzELF8sVC5ZZFskBULNUv%2Fimage.png?alt=media&#x26;token=0ac5d781-82b1-42d6-a768-5810c6362a2f" alt=""><figcaption></figcaption></figure>

#### 4. Done!

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