Setup
Install and configure Drugdealer.
#Download
Download Zyke's Drugdealer from your CFX portal under Granted Assets. If it is missing from your portal, see Lacking Entitlement.
#Dependencies
Install oxmysql, ox_lib, and zyke_lib, and configure the framework and inventory in
zyke_lib. See Dependencies.
#Resource
Place the resource in your server's resources folder as
zyke_drugdealer. Keep the folder name as it is.
#Items & Images
Add the items to your inventory from
zyke_drugdealer/extras/items/:
- ox_inventory: copy the definitions from
ox_inventory.luaintoox_inventory/data/items.lua.- QBCore / Qbox: copy the definitions from
qb-core.luainto your shared items.- ESX with the default inventory: import
zyke_drugdealer_item.sqlinto your database. It addsdrugphone,weedleaf_quality2, andcokeleaf_quality2, the items the default config uses.Copy the images from
zyke_drugdealer/extras/items/images/into the inventory's image directory.The
drugphoneitem opens the dealer phone. The leaves are the drugs customers buy. If your server already has its own drug items, change theitemof each drug inshared/unlocked/config.luainstead.
#Database
The
zyke_drugdealer_reputationtable is created on the first start, so there is no SQL to import for it.
#Start Order
Start the dependencies before Drugdealer:
cfgensure oxmysql ensure ox_lib ensure zyke_lib ensure zyke_drugdealer
#Verify Gameplay
Give yourself a
drugphoneand someweedleaf_quality2. Use the phone, or run/opendrugphone, wait for a customer's message, call them for the location, and complete the deal.