Optional Features

This section explains how the built-in features work and, if needed, how to make them compatible with other resources. These optional features can be configured in [configs/config.lua].

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

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

📽️ A video example is available if you need a walkthrough.arrow-up-right


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.


zDiscord Integration

To integrate with zDiscord:

  1. Add the 3 files from the download into:

  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-download
3KB

Last updated

Was this helpful?