/qb-cocaine

FiveM Cocaine harvesting, processing and selling script for QBCore Framework.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

QB-Cocaine

FiveM Cocaine picking, processing and selling script for QBCore Framework.

Dependencies

  • Cayo Perico Map
    This dependency can be easily removed by changing the PickingZone and ProcessingZone variables in config.lua.
    The PickingZone variable defines the place where players can pick coca leaves and the ProcessingZone 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.

  • qb-core

  • qb-inventory

Installation

  1. clone repo into your resources folder

    git clone https://github.com/0xIbra/qb-cocaine.git

  2. 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.'},
  1. copy the images in assets folder to qb-inventory/html/images/

  2. start resource in server.cfg or resources.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.

Discord

CyberRP Scripts: https://discord.gg/3SmVRVcDaf