> For the complete documentation index, see [llms.txt](https://docs.codesign.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codesign.pro/paid-scripts/vip-shop/features.md).

# Features

### Vehicle Stock

#### How does vehicle stock work?

Vehicle stock lets you **limit how many times a specific vehicle can be sold** in the VIP shop.

* Stock is **saved in the database**
* Stock amounts can be **changed at any time**
* Only vehicles **added to the vehicle stock table** are limited
* Vehicles **not** in the table can be sold **unlimited times**

#### How do I use vehicle stock?

1. Enable vehicle stock in `configs/config.lua`:
   * Set `Config.VehicleStock` to **true**
2. Open your server database
3. Locate the **`cd_vipshop_vehiclestock`** table
4. Add:
   * The **vehicle spawn name**
   * The **stock amount**

<div align="left"><figure><img src="/files/5K6f7qHwJArdmTO0NWdi" alt=""><figcaption></figcaption></figure></div>

⚠️ Vehicle stock **can only be edited in the database**.

> 📽️ [A video example is available if you need a walkthrough.](https://gyazo.com/eb32f7cb4c2a330a7be7f8d359213d47)

***

### Subscriptions (Monthly)

To enable **recurring / monthly subscriptions** on your Tebex store:

1. Go to **Step 6** where you added the Tebex command to the product
2. Add **the same command a second time**
3. Change **when the second command is sent** to **run on renewal** (not on purchase)

This ensures the player automatically receives the **same amount of vip tokens** every time their subscription renews.

<figure><img src="/files/48U5f0anBy8zvuV5eTKW" alt=""><figcaption></figcaption></figure>

***

### zDiscord Integration

To integrate with **zDiscord**:

1. Add the **3 files** from the download into:

   ```
   zdiscord/server/commands
   ```
2. Restart your server

This integration is **QBCore only** unless you modify the code.

#### Available Commands

* `/pointlist [cid]` – View a player’s points
* `/pointadd [cid] [points]` – Add points to a player
* `/pointremove [cid] [points]` – Remove points from a player

{% file src="/files/2sM4mDM0Deo9QBsVcpcE" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.codesign.pro/paid-scripts/vip-shop/features.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
