Drug System
Purchase
Installation
Standalone
Configure files
Open
config.lua.Configure
config.luato 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.
QBCore
ESX
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:
Last updated