FiveM Cocaine picking, processing and selling script for QBCore Framework.
-
Cayo Perico Map
This dependency can be easily removed by changing thePickingZoneandProcessingZonevariables inconfig.lua.
ThePickingZonevariable defines the place where players can pick coca leaves and theProcessingZonevariable 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
resourcesfoldergit clone https://github.com/0xIbra/qb-cocaine.git
-
Edit
items.luafile 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
assetsfolder toqb-inventory/html/images/ -
start resource in
server.cfgorresources.cfgensure 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