Skip to content

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

License

Notifications You must be signed in to change notification settings

cyberrp-fr/qb-cocaine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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