Installation Guide
1. Download
- Download your resource from FiveM's Portal.
- Unzip the
cd_vipshop.zipfolder and place this folder in your server's resource folder.
2. Bridge
This resource is the core of all Codesign scripts. It handles framework connections, database setup, and error handling behind the scenes. When the bridge starts, it automatically detects and starts every compatible resource including all Codesign scripts and any Codesign-compatible scripts you have installed.
- Download cd_bridge from FiveM's Portal.
- Add cd_bridge to the bottom of your server start config (
server.cfg).
ensure cd_bridgeFor more information on how to install the bridge, check out the full guide.
3. Config.lua
You must review all configurable options in [cd_vipshop/configs/config.lua] and adjust them to suit your server's needs.
Be sure to read the commented help text at the end of each line it explains the purpose of each configuration option.
.png)
The most important config options are in the Important category at the top of config.lua.
All other settings are optional.
.png)
4. Install Dependencies
Where Can I Find These Dependencies?
You can find all dependencies in the [cd_vipshop/dependencies] folder.
Each dependency has its own folder containing a text file with a GitHub download link.
Alternatively, you can view the full list in the table below.
Where Should I Put These Dependencies?
Place all dependencies in your main resources folder, just like any other resource.
Do not place them inside the cd_garage folder.
Do I Need to Add Them to the Server Start Config?
- Required: No need to add these to your
server.cfgthey start automatically as dependencies of this resource. - Optional: Yes, these must be manually added to your
server.cfg.
| Resource Name | Download | Detai |
|---|---|---|
cd_drawtextui | Github | REQUIRED by default but can be replaced. |
5. Create a Game Server
Create a game server on your Tebex Webstore to generate your secret key.
If you haven't done this before, watch the video guide.
Add the following line to your server.cfg, replacing CHANGE_ME with your Tebex secret key:
sv_tebexSecret CHANGE_ME.png)
6. Create a Product on Your Tebex Webstore
Create a product on your Tebex Webstore and add the command below.
If this is your first time, follow the video guide.
Add this command to the product:
tebex_purchase {"transaction_id":"{transaction}", "package":"{packageName}"}Using subscriptions?
See Subscriptions Setup for monthly compatibility.
7. Config.TebexListings
Important Product Setup
- The product name on your Tebex Webstore must exactly match the
ProductNameinConfig.TebexListings(configs/config.lua) - The amount is how many coins the player receives when the product is purchased
.png)
The product name on your Tebex Webstore.
8. Configure the In-Game Shop
Add or remove shop rewards (vehicles, money, items, weapons) using Config.Shop in configs/config.lua.
9. Redeem a Purchase
After a player buys a product from your Tebex Webstore, Tebex will automatically run a command on your server (this can take 2–10 minutes).
Once complete, the player can redeem their purchase in-game using:
/redeem tebex_transaction_idThis will save the player's vip tokens and make them available to spend.