FiveM Cocaine picking, processing and selling script for QBCore Framework.
-
Cayo Perico Map
This dependency can be easily removed by changing thePickingZone
andProcessingZone
variables inconfig.lua
.
ThePickingZone
variable defines the place where players can pick coca leaves and theProcessingZone
variable defines where the players can process the coca leaves they've picked.Change these 2 variables to a location in los santos map and you won't need the Cayo perico map for this script.
-
clone repo into your
resources
foldergit clone https://github.com/0xIbra/qb-cocaine.git
-
Edit
items.lua
file to add these 2 new items
-- QB-Cocaine
['coca_leaves'] = {['name'] = 'coca_leaves', ['label'] = 'Feilles de Coca', ['weight'] = 50, ['type'] = 'item', ['image'] = 'cocaineleaf.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Feuilles de coca pour produire de la Cocaïne.'},
['cocaine_bag'] = {['name'] = 'cocaine_bag', ['label'] = 'Pochon de Cocaïne', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'cocaine_baggy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Pochon de Cocaïne que vous pouvez vendre.'},
-
copy the images in
assets
folder toqb-inventory/html/images/
-
start resource in
server.cfg
orresources.cfg
ensure qb-cocaine
That's pretty much it, you can of course change some settings in config.lua
file to your liking.
If this script was helpful, please consider leaving a star.
CyberRP Scripts: https://discord.gg/3SmVRVcDaf