Wert Drug Sell System

You can access the setup information you need about this product


🚀 Installation

Welcome to the Wert Drug Selling System documentation. Follow these steps to install and configure the script on your server.

Note: This script is encrypted using FiveM Asset Escrow system. Ensure your server license key is linked to the same CFX account used for the purchase.

📋 Requirements

Before installing, ensure you have the following dependencies installed and started:

  • Framework: QBCore, ESX, or QBox ( Configurable )

  • ox_lib (Required for UI and Logic)


🛠️ Step-by-Step Installation

1. Download & Extract

Download the wert_drugsell package from your Keymaster assets. Extract the folder into your server's resources directory.

2. Configure Framework

Open shared/config.lua and ensure the framework settings match your server.

Lua

3. Database Setup (Auto-Install) ✨

You do not need to run any SQL files manually.

The script includes an Auto-Migration system. When you start the script for the first time, it will automatically create the necessary database tables (wert_drugsell_users, transactions, etc.) and load the dealers.

4. Add Items to Inventory

Since this script works seamlessly with ox_inventory, you need to register the drug items and the tablet.

Open ox_inventory/data/items.lua and paste the following codes:

Lua

{% hint style="warning" %}

Important: Ensure the item names match exactly what is in your Config.Drugs inside shared/config.lua. If you change item names there, change them here too.

{% endhint %}

5. Item Images

Copy the images provided in the assets/images folder of the script and paste them into:

ox_inventory/web/images/

6. Server Config

Add the script to your server.cfg file. Ensure it is started after the dependencies.

Kod snippet'i

7. Restart Server

Restart your server. Watch the server console; you should see a message confirming that the database tables have been checked and dealers have been initialized.


🌍 Localization (Translation)

You can easily translate the entire interface without editing the source code.

  1. Navigate to wert_drugsell/web/build/locales.json.

  2. Open the file with any text editor (VS Code, Notepad++).

  3. Edit the values on the right side to your desired language.

  4. Restart the script.

Example:

JSON


OPEN FILES

SHARED/CONFIG.LUA

CLIENT/EDITABLE_CLIENT.LUA

SERVER/EDITABLE_SERVER.LUA

🆘 Support

If you encounter any issues during installation, please check the server console for errors first. For further assistance, join our Discord Server and open a ticket.

Last updated