# 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="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2FN686XoS5JAhKD6OnCNu4%2F143d57117fa20346082a9e7acc8ec619.png?alt=media&#x26;token=a7221be7-5af2-474a-9f1c-84cf7df52e7a" alt=""><figcaption><p>Add your Rust Console Edition server</p></figcaption></figure>

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2FoeTAIb6o0IBgWFLHe5dB%2F597ae1a8e4d80831a84e3dbca0c50c92.png?alt=media&#x26;token=f70ef5ff-b80b-4d9f-b954-048619ead991" 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**](https://docs.tip4serv.com/store-setup/server-commands)**.**

**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**
