# Blocking Slots Using Tebex

Quasar Multicharacter includes a simple and flexible system to manage how many character slots each player can have. You can do this in two ways — automatically through Tebex or manually from inside the game.

With **Tebex integration**, players can buy extra character slots directly from your Tebex store. Once purchased, those slots are unlocked automatically. You can control how many slots are locked or available by editing the “tebex” section in the `config.lua` file.

If you prefer not to use Tebex, you can manage slots manually with the `/addslot id` command, which lets you give extra slots to any player by their server ID.

It’s important to configure one of these options correctly to avoid confusion or issues with the slot system. You can find full instructions, including how to get your Tebex token and connect it to the script, in the following link.

***

<details>

<summary>Char Slots Integration</summary>

Quasar Multicharacter allows you to use slots blocked through Tebex Store, with this system you can sell slots in your official Tebex server store.

***

### How to connect Tebex to your server? <a href="#how-to-connect-tebex-to-your-server" id="how-to-connect-tebex-to-your-server"></a>

To start the integration, we must go to "Integrations" within our panel on the left in Tebex. Once inside, we will see the "Game Servers" option, that is the way to go.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fvqe7JOrvAGroNX8Yr08U%252Fimage.png%3Falt%3Dmedia%26token%3D47c04797-d192-40fc-a449-024189784a45\&width=768\&dpr=4\&quality=100\&sign=df41fb7a\&sv=2)

Once inside this part of our Tebex store, we will go to the button that says "Connect Game Server" to continue.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252FFhQpxXwo8eBkSONgxdgu%252Fimage.png%3Falt%3Dmedia%26token%3D31bdb86e-1918-4a00-a45e-824a10e5899c\&width=768\&dpr=4\&quality=100\&sign=81272303\&sv=2)

We will create a PLUGIN in this new section, where we will click to continue.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fd7fPSYEvUI6DJxOdzjd2%252Fimage.png%3Falt%3Dmedia%26token%3Dc7dde023-243d-4f7f-b64b-d97d4a27d5a7\&width=768\&dpr=4\&quality=100\&sign=3648482e\&sv=2)

In this step, we can give it a custom name, but we must ignore the "Packages" part, we will simply continue.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fa7oRvc4x9kGADu0XOwJo%252Fimage.png%3Falt%3Dmedia%26token%3D4ca593a8-d0fc-41da-bc50-f00238472662\&width=768\&dpr=4\&quality=100\&sign=8cb168d3\&sv=2)

Click copy command and paste it to server.cfg then restart your server and when Not Connected indicator turns green and says connected click "Continue".

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fi0HcWaFve4wMUsFL0CoE%252Fimage.png%3Falt%3Dmedia%26token%3D8b64f630-642c-43de-9438-6d17ff5f8247\&width=768\&dpr=4\&quality=100\&sign=9e550c6\&sv=2)

Once this is done, we have our integration ready, which we will add within the package that we will sell as Multicharacter slot in our store. To do this, we will go to "Packages" in the menu on the left of Tebex.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252FUmhdan835EUuHWnTLfP3%252Fimage.png%3Falt%3Dmedia%26token%3D1898c965-e904-43d1-ad3f-6d8e59016e7f\&width=768\&dpr=4\&quality=100\&sign=e643f31d\&sv=2)

We will click on "Add New" and then "Package" to create our package.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252FsX0djeOUbyMAcYHAlj7c%252Fimage.png%3Falt%3Dmedia%26token%3D4df668fc-648a-4634-bd95-f5a1835d418a\&width=768\&dpr=4\&quality=100\&sign=a7b82c44\&sv=2)

We will give you a title, description, image and all the details you want to create a unique package.

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252FPghX67eJjOtD1bimodrw%252Fimage.png%3Falt%3Dmedia%26token%3D59b0b097-9033-42b5-be0a-9c02276cc2e7\&width=768\&dpr=4\&quality=100\&sign=e1f4ae1e\&sv=2)

Once the details have been given, we will go further down and create a "Game Server Commands".

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fjc4HcN8F45QLgvC3UE4j%252Fimage.png%3Falt%3Dmedia%26token%3D94367f36-223a-4fc3-8a7e-1e5fe17b1907\&width=768\&dpr=4\&quality=100\&sign=c48d3573\&sv=2)

Within "Game Servers" we will select the integration that we did previously in the previous steps and we will click on the button on the right that says "Add Command".

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252FxtbMahMXuE8Gtt1wTssP%252Fimage.png%3Falt%3Dmedia%26token%3Dee9be293-851b-44c0-922b-c7dc812dc2cf\&width=768\&dpr=4\&quality=100\&sign=1b1c8cc4\&sv=2)

Inside, we will leave the default option "When the package is purchased" and add the following text.

Copy

```
addslot {transaction}
```

![](https://docs.quasar-store.com/~gitbook/image?url=https%3A%2F%2F1191742468-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJgIZQFN9RzCZxmyFigsh%252Fuploads%252Fs4Sb6QaSoyQEmZ23P2LV%252Fimage.png%3Falt%3Dmedia%26token%3Ddf923e9b-f1b2-4c3b-941d-fc0fbc17d93f\&width=768\&dpr=4\&quality=100\&sign=278dc554\&sv=2)

Once all these steps have been completed, everything is ready. When a player purchases this package, they will receive a tbx-id, which they will copy and use within our Multicharacter to unlock new slots.

</details>

<details>

<summary>Give slot via command</summary>

You can give slots through administrative command using /addslot id.

```
/addslot [id]
```

Add a slot to the selected player id.

***

### How to add blocked slots? <a href="#how-to-add-blocked-slots" id="how-to-add-blocked-slots"></a>

This step is simple, in config.lua we will have access to the "tebex" option, as in the following example.

```lua
Config.CharacterPositions = {
    [0] = {
        coords = vec3(-1009.081299, -475.674713, 48.495923),
        heading = 201.259842,
        lookAt = vec3(-1005.929688, -478.549438, 50.021973),
        animation = {
            [0] = { dict = 'anim@amb@office@boardroom@boss@male@', anim = 'base' },
            [1] = { dict = 'anim@amb@office@boardroom@boss@male@', anim = 'base' }
        },
        tebex = false -- If set to true, the slot will not be automatically playable and will be managed by tebex. You can also manage it yourself by command: /addslot [id]
    },
    -- Other slots
} 
```

</details>
