leaf-mapleDrug System

Purchase

Purchase this resourcearrow-up-right

Installation

circle-info

Framework compatibility

This resource is standalone and works on any FiveM server.

Compatible with ESX, QBCore, QBox, vRP, and other frameworks.

If you are using a framework other than ESX, QBCore, or QBox, follow the Standalone installation instructions.

Standalone

1

Put files into resources

  • Put the rtx_drug_system folder into your resources.

  • Put the rtx_drug_system_objects folder into your resources.

2

Configure files

  • Open config.lua.

  • Configure config.lua to your preferences.

  • If you are using the standalone version, you need to create your own items depending on your inventory system. In server/other.lua, add your own functions for getting items, checking money, etc. You can follow the examples provided for ESX and QBCore as a reference.

3

Add to server.cfg

  • Put the rtx_drug_system to your server.cfg.

  • Put the rtx_drug_system_objects to your server.cfg.

4

Items and database

  • Go to the Items folder and depending on which inventory system you use, either copy the items into your inventory item list file (for QBCore or OX Inventory) or import the SQL items into your database if you're using ESX.

  • Upload sql sql.sql file to your MySQL database.

QBCore

1

Put files into resources

  • Put the rtx_drug_system folder into your resources.

  • Put the rtx_drug_system_objects folder into your resources.

2

Configure framework and settings

  • Open config.lua.

  • Replace Config.Framework = "standalone" with Config.Framework = "qbcore".

  • Configure config.lua to your preferences.

3

Add to server.cfg

  • Put the rtx_drug_system to your server.cfg.

  • Put the rtx_drug_system_objects to your server.cfg.

4

Items and database

  • Go to the Items folder and depending on which inventory system you use, either copy the items into your inventory item list file (for QBCore or OX Inventory) or import the SQL items into your database if you're using ESX.

  • Upload sql sql.sql file to your MySQL database.

ESX

1

Put files into resources

  • Put the rtx_drug_system folder into your resources.

  • Put the rtx_drug_system_objects folder into your resources.

2

Configure framework and settings

  • Open config.lua.

  • Replace Config.Framework = "standalone" with Config.Framework = "esx".

  • Configure config.lua to your preferences.

3

Add to server.cfg

  • Put the rtx_drug_system to your server.cfg.

  • Put the rtx_drug_system_objects to your server.cfg.

4

Items and database

  • Go to the Items folder and depending on which inventory system you use, either copy the items into your inventory item list file (for QBCore or OX Inventory) or import the SQL items into your database if you're using ESX.

  • Upload sql sql.sql file to your MySQL database.

Coordinates where you can buy all required items if Config.ShopSystem is enabled in the config:

  • -41.15, -226.55, 44.79

  • 714.49, -717.04, 25.12

  • -134.7, -1448.98, 32.46

Coordinates for drug dealers if Config.DrugDealer is enabled:

  • -70.22, -1206.34, 26.9

  • -131.91, -1621.27, 31.51

If you want, you can use our example drug labs, which include 2 empty interiors. Just enable the rtx_drug_system_labs resource, which is included in the package.

Coordinates of the drug labs:

  • -1158.54272, -2315.69922, -1.97996569

  • -1164.99609, -2328.88843, -0.5739994

If you enable Config.DrugEffects in the config, the usable drug items are:

  • weedjoint

  • cocabag

  • methbag

You can easily create new usable drug items by following our examples in server/other.lua, and define the visual effects in client/other.lua.

Notes

This page contains simple installation instructions only.

More detailed instructions, exports, events and developer-related information can be found directly inside the product folder after downloading the resource from the CFX Asset Portal.

Support

If you need help with installation, configuration or have any questions regarding this resource, feel free to contact us on our Discord server:

Join our Discordarrow-up-right

Last updated