# Veretech Discord Bot

The commands below can be configured in Tip4Serv and will be executed by the **Veretech bot** on your Rust server to automatically deliver purchases to your players.

### How to setup Veretech for Tip4Serv?

{% embed url="<https://docs.veretech.systems/books/veretech-rce-bot/chapter/tip4serv-integrations>" %}

### Connect Your Rust Server (Console Edition)

Follow these steps to connect your Rust Console Edition server to Tip4Serv using the Veretech bot:

#### 1. Add Your Server to Tip4Serv

* Go to the [**My Servers**](https://tip4serv.com/dashboard/my-servers) section in your Tip4Serv dashboard
* Click on **Add Game Server**
* Enter your server name and **select the Veretech bot** as the connection method

<figure><img src="/files/FZoCyevWLtJus69KukUM" alt=""><figcaption><p>Add your Rust Console Edition server</p></figcaption></figure>

<figure><img src="/files/NjwJEFcuUKexUTbIaWhy" alt=""><figcaption><p>Veretech connection</p></figcaption></figure>

#### 2. Invite the Veretech Bot

* [Invite the Veretech bot](https://discord.com/oauth2/authorize?client_id=1183388897384874094\&permissions=402653184\&scope=bot%20applications.commands) to your Discord server
* Refer to the [Veretech documentation](https://docs.veretech.systems/books/veretech-rce-bot/page/adding-your-gameserver) for detailed setup instructions.

#### 3. Link Your Server to Tip4Serv Using a Command

In your Discord server:

1. Type `/tip key`
2. In the `gameserver` field, **select your Rust server** from the list
3. In the `apikey` field, **paste the API key** you received in the [**My Servers** ](https://tip4serv.com/dashboard/my-servers)section of Tip4Serv
4. Confirm to complete the connection

✅ Once this is done, your server is successfully linked and ready to deliver purchases!

### **How to give Items, VIP and Discord Currency after purchase?**

To ensure your players receive their orders after a purchase, you must configure the delivery commands for each product in the [**product editor**](/store-setup/server-commands.md)**.**

**Give an Item to the player:**

```
inventory.giveto "{PlayerName}" item-name quantity
```

```
Example you can use on Tip4Serv command editor:
inventory.giveto "{PlayerName}" rifle.ak {quantity}
```

**Give or remove VIP from a player:**

```
VIPID "{PlayerName}"
```

```
RemoveVIP "{PlayerName}"
```

**Give a kit to the player:**

```
kit givetoplayer "name-of-kit" "{PlayerName}"
```

<pre><code><strong>Example you can use on Tip4Serv command editor:
</strong>kit givetoplayer "vip" "{PlayerName}"
</code></pre>

**Give currency to the player:**

<pre><code><strong>Example you can use on Tip4Serv command editor:
</strong>vt.give 10000 bank
</code></pre>

```
Example with the quantity multiplier:
vt.give {quantity*10000} bank
```

### 🛠️ Delivery Issues

If a purchase is not delivered, it’s usually due to missing permissions or a misconfigured server connection. Here's how to check and fix the problem:

#### 🔍 Common Causes

* **Veretech no longer has permission** to connect to your gameserver (e.g., GPORTAL permissions were removed).
* The server connection has been **disabled**.

***

#### ✅ Quick Fix Steps

1. On Discord, type:

   ```
   /gs enable yes
   ```
2. Wait **5 minutes**
3. Run:

   ```
   /gs test
   ```

   * If it shows **disabled** again:
     * Go to your GPORTAL account
     * **Remove and re-add Tip4Serv/Veretech permissions**
     * This often resolves bugs with the connection

***

#### ⚠️ If Payment Status is "PENDING"

Delivery will not occur while the order is still marked as *pending*. To force reconnection:

1. Run:

   ```
   /gs enable no
   ```
2. Then:

   ```
   /gs enable yes
   ```

***

#### 🛡️ Prevention Tips

To ensure orders are delivered smoothly:

* ✅ Make sure the player is linked by running the `/link` command on your Discord server
* ✅ The player must use `/claim` **without an order ID** to automatically detect their recent purchase
* ✅ The purchase must be made using the **same Discord account** the player uses to run `/claim`
* ✅ Ensure the payment status is **not marked as pending**


---

# 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.tip4serv.com/rust-console-edition/veretech-discord-bot.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.
