Documentation
  • Discord Server
  • About Us
  • Free Resources
    • Death Screen
      • PS-Dispatch Integration
    • Battlepass
      • Guides
      • Commands
        • Player Commands
        • Admin Commands
      • API
        • Server
    • Garages
      • Guides
        • Creating Interior
        • Creating Garage
        • How to find entity sets (customizations) for interior
  • Paid Resources
    • Elevator Creator V2
      • Installation
      • Accessible code
    • Radar System V2
      • Installation
      • Accessible code
    • Hotels Creator
      • Accessible code
    • Vehicle Shop Creator
      • Accessible code
    • Stocks Market
      • Accessible code
      • [DEV] - Usable Functions
    • Discord Voice Attendance
      • Installation
    • Deathmatch System
      • Installation
        • esx_ambulancejob
        • qb-ambulancejob
        • wasabi_ambulance
        • qbx_medical
        • codem-inventory
        • core_inventory
      • Accessible code
    • Object Creator
      • Dependencies
      • Accessible code
    • Cocaine Labs
      • Dependencies
      • Accessible code
    • Ownable Crafting Tables
      • Dependencies
      • Accessible code
      • Common Problems
    • Evidence System
      • Dependencies
      • Accessible code
      • Installation
      • API
    • Marketplace V2
      • Accessible code
      • Installation
      • Migration from V1
    • EMS Dispatch
      • Sending Dispatch
      • Accessing the Menu
      • Config File
    • Weed Planting
      • Accessible code
      • How to add new strain?
      • How to install
    • Advanced DarkNet System
      • Config
    • Advanced Taxi Job
      • Accessible code
      • Changelog
    • Advanced Gang Creator
      • Accessible code
      • Installation
        • QB Core
        • QBOX Core
      • API
      • FAQ
    • Advanced Private Cameras
      • ESX
        • Items
      • QBCore
        • Items
      • Accessible code
    • Advanced Elevator Creator
      • Accessible code
    • Advanced Ownable Rent Creator
      • SQL
      • ESX
      • QBCore
      • Config File
    • Advanced Job Creator
      • Installation
        • QB CORE
      • Accessible code
    • Advanced Ownable Shops
      • Installation
      • Accessible code
      • SQL
    • Advanced Ped Creator
      • SQL
      • Config File
    • Advanced Promocode Creator
      • Accessible code
      • SQL File
      • Common problems
    • Advanced Safe Zone Creator
      • Config File
    • Turf Wars
      • Ox Inventory
      • Accessible code
      • API
    • Advanced Gas Station Creator
      • Accessible code
    • Advanced Advertisements System
      • SQL File
      • Accessible code
    • Player Manager
      • Installation
      • Accessible code
    • Mechanic Job
      • Installation
      • Accessible code
      • SQL
    • Advanced Radar System
      • Accessible code
      • SQL
    • Crypto Mining
      • Installation
      • Accessible code
      • Items
      • SQL
    • Racing System
      • Accessible code
    • Car Theft
      • Accessible code
    • Advanced Solar Panels
      • Accessible Code
      • SQL
      • ESX
        • Items
      • QBCore
        • Items
    • Pilot Job
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • Metadata
        • qb-smallresources
      • QBOX
        • Metadata
    • Advanced Ownable Banks
      • Accessible Code
    • Post Office
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • SQL
      • Exports
    • Weather Sync
      • API
    • Billing System
      • Accessible code
      • SQL
      • Common problems
Powered by GitBook
On this page
  • qb-core/shared/items.lua example
  • ox_inventory/data.items.lua example
  1. Paid Resources
  2. Weed Planting

How to add new strain?

PreviousAccessible codeNextHow to install

Last updated 2 months ago

  • In the shared/config.lua file, there is a table named "strains" where you can create an unlimited number of weed strains. In the image, you have an example of how to create strains. "p_haze" and "p_haze_seed" must be added to your items inside the inventory (or if you use qb-core, then shared/items.lua). The name of the table and the seed key must always be added to your items.

  • There is also table named "items" where you can edit items for pot, fertilizer, water and reward item, those item also needs to be added in your inventory or wherever you need to put your items

qb-core/shared/items.lua example

['p_haze'] = {
        name = 'p_haze',
        label = 'Purple Haze',
        weight = 100,
        type = 'item',
        image = 'p_haze.png',
        unique = true,
        useable = false,
        shouldClose = true,
        combinable = nil,
        description = 'Weed strain type: purple haze'
    },

    ['p_haze_seed'] = {
        name = 'p_haze_seed',
        label = 'Purple Haze Seed',
        weight = 100,
        type = 'item',
        image = 'p_haze_seed.png',
        unique = true,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'Purple Haze Seed'
    },

    ['weedpot'] = {
        name = 'weedpot',
        label = 'Weed Pot',
        weight = 100,
        type = 'item',
        image = 'weedpot.png',
        unique = true,
        useable = false,
        shouldClose = false,
        combinable = nil,
        description = 'Weed Pot'
    },

    ['fertilizer'] = {
        name = 'fertilizer',
        label = 'Fertilizer',
        weight = 100,
        type = 'item',
        image = 'fertilizer.png',
        unique = true,
        useable = false,
        shouldClose = false,
        combinable = nil,
        description = 'fertilizer'
    },

    ['cannabis'] = {
        name = 'cannabis',
        label = 'Canabis',
        weight = 100,
        type = 'item',
        image = 'cannabis.png',
        unique = true,
        useable = false,
        shouldClose = false,
        combinable = nil,
        description = 'Canabis'
    },

ox_inventory/data.items.lua example

['p_haze_seed'] = {
		label = 'Purple Haze Seed',
		weight = 20,
		stack = true,
		close = true,
		client = {
			export = "uniq_weedplant.plantNewSeed",
		}
	},

	['p_haze'] = {
		label = 'Purple haze',
		weight = 150,
		stack = true,
		close = false,
	},

	['weedpot'] = {
		label = 'Weed Pot',
		weight = 500,
		stack = true,
		close = false,
	},
	
	['fertilizer'] = {
		label = 'Fertilizer',
		weight = 100,
		stack = true,
		close = false
	},

	['cannabis'] = {
		label = 'Cannabis',
		weight = 500,
		stack = true,
		close = false
	},