Drug Labs
Installation
Full installation guide to get this script up & running in no time.
Download Asset(s)
Login to your Granted Assets - CFX Portal
Download RxDrugLabs
Download Dependencies
Configure Items
RxDrugLabs/[INSTALLATION]/items
within the script Head to
Open the file with the name of your inventory & copy the items
If there is no file for the inventory you're using, take them from another file and create the items on your own.
Paste the items in your inventory
RxDrugLabs/[INSTALLATION]/images
& copy all images Head to
Paste all images in your inventory
Modify Database
RxDrugLabs/[INSTALLATION]/rx_druglabs.sql
Head to
Open the file in HeidiSQL or phpMyAdmin
Execute the query
Ensuring Asset(s)
To make sure the asset(s) starts & works properly we need to make sure all asset(s) start in the correct order in your server.cfg. Below you can find an example of how it can look like.
You can also create a folder called
[rx]
in your resource folder. If you own multiple scripts from RX, you will not need to add them all to your server.cfg seperately.server.cfg
# 1. Start oxmysql
ensure oxmysql
# 2. OPTIONAL: Start (Y)our Shells
ensure shell_name
# 3. Start your framework
ensure es_extended or qb-core or qbx_core
# 4. Start ox_lib
ensure ox_lib
# 5. Start fmLib (MUST be ensured below frameworks, inventories & such)
ensure fmLib
# 6. OPTIONAL: Start Operation DLC
ensure RxD_Operation
# 7. Finally, start our asset singularly
ensure RxDrugLabs
# Or, start all of our assets at once
ensure [rx]
FAQ
If you want to add a new map as creatable druglab, you can simply copy an existing file within RxDrugLabs/config/labs. Make sure to change the filename & content inside the file where necessary.
type = 'map', works with coordinates (for MLO, YMAP, IPL's)
type = 'shell', works with offsets, spawn shells by using
type = 'shell', works with offsets, spawn shells by using
/shell:spawn shell_name
, to get the offsetsConfig.DrugLabs['rxs_weedlab'] = {
type = 'shell', -- map or shell
shell = 'rxs_weedlab',
door = {
offset = vector3(-16.391327, 6.398926, 1.000198), -- offset instead of coords
heading = 266.34463500977
},
laptop = {
offset = vector3(-13.431366, 8.115967, 1.812569), -- offset instead of coords
heading = 4.95872497559,
},
stash = {
offset = vector3(-15.917267, -2.097412, 1.000191), -- offset instead of coords
},
...other code,
},
Config.DrugLabs['weed_ipl'] = {
type = 'map', -- map or shell
door = {
coords = vector3(1065.9797, -3183.3423, -39.1635), -- coords instead of offset
heading = 88.8834,
},
laptop = {
coords = vector3(1035.8090, -3202.6897, -37.2837), -- coords instead of offset
heading = 4.0,
},
stash = {
coords = vector3(1043.0303, -3194.2317, -38.1616), -- coords instead of offset
},
...other code,
},