Kartik Scripts

Items

In this section, we’ll guide you through configuring the kartik-Weed items for three different inventory systems: ox_inventory and qb-inventory. Below are the item configurations you’ll need to add to your server to enable the Drugs items in your inventory system.


Lua For Itmes

For ox_inventory, you need to add the following configuration in your ox_inventory/data/items.lua file.

	["weed_seeds"] = {
		label = "Seeds",
		weight = 10,
		stack = false,
		close = true,
		description = "Seeds.",
		client = {
			export = "kartik-weed.useSeeds",
		}
	},
	["wet_weed"] = {
		label = "Wet Weed",
		weight = 10,
		stack = false,
		close = true,
		description = "Wet.",
	},
	["dry_weed"] = {
		label = "Dry Weed",
		weight = 10,
		stack = false,
		close = true,	
		description = "Dry.",
	},

	["trimmed_leaves"] = {
		label = "Trimmed Leaves",
		weight = 10,
		stack = false,
		close = true,
		description = "Trimmed.",
	},
	["scissor"] = {
		label = "Scissor",
		weight = 10,
		stack = false,
		close = true,
		description = "Scissor.",
		client = {
			export = "kartik-weed.useTrimmingScissors",
		}
	},

	["grinded_leaves"] = {
		label = "Grinded Leaves",
		weight = 10,
		stack = false,
		close = true,
		description = "Grinded.",
	},
	["glass_jar"] = {
		label = "Glass Jar",
		weight = 10,
		stack = false,
		close = true,
		description = "Jar.",
		client = {
			export = "kartik-weed.useGlassJar",
		}
	},
	["curing_jar"] = {
		label = "Curing Jar",
		weight = 10,
		stack = false,
		close = true,
		description = "Jar with buds curing inside.",
		client = {
			export = "kartik-weed.useCuringJar",
		}
	},
	["cured_weed_bud"] = {
		label = "Cured Weed Bud",
		weight = 10,
		stack = false,
		close = true,
		description = "Cured weed bud.",
	},
	["weed_grinder"] = {
		label = "Weed Grinder",
		weight = 10,
		stack = false,
		close = true,
		description = "Grinder.",
		client = {
			export = "kartik-weed.useWeedGrinder",
		}
	},
	["infusion_oil"] = {
		label = "Infusion Oil",
		weight = 10,
		stack = false,
		close = true,
		description = "Infusion Oil.",
		client = {
			export = "kartik-weed.useInfusionOil",
		}
	},
	["infusion_mix"] = {
		label = "Infusion Mix",
		weight = 10,
		stack = false,
		close = true,
		description = "Weed and oil mixing, wait for it to infuse.",
		client = {
			export = "kartik-weed.useInfusionMix",
		}
	},
	["infused_weed_mix"] = {
		label = "Infused Weed Mix",
		weight = 10,
		stack = false,
		close = true,
		description = "Infused Weed Mix.",
	},
	["digital_scale"] = {
		label = "Digital Scale",
		weight = 10,
		stack = false,
		close = true,
		description = "Digital Scale.",
		client = {
			export = "kartik-weed.useDigitalScale",
		}
	},
	["measured_weed"] = {
		label = "Measured Weed",
		weight = 10,
		stack = false,
		close = true,
		description = "Measured Weed.",
		client = {
			export = "kartik-weed.useMeasuredWeed",
		}
	},
	["weed_bag"] = {
		label = "Weed Bag",
		weight = 10,
		stack = false,
		close = true,
		description = "Weed Bag.",
	},
	["packed_weed"] = {
		label = "Packed Weed",
		weight = 10,
		stack = false,
		close = true,
		description = "Packed.",
	},
	["joint_paper"] = {
		label = "Joint Paper",
		weight = 10,
		stack = false,
		close = true,
		description = "Joint.",
		client = {
			export = "kartik-weed.useJointPaper",
		}
	},
	["weed_joints"] = {
		label = "Weed Joints",
		weight = 10,
		stack = false,
		close = true,
		description = "Weed Joints.",
		client = {
			export = "kartik-weed.useJoint",
		}
	},
	['terpenes'] = {
		label = 'Terpenes',
		weight = 50,
		stack = true,
		close = true,
		description = 'Bottle of aromatic terpenes',
	},
    ["weed_racks"] = {
		label = "Racks",
		weight = 10,
		stack = false,
		close = true,
		description = "Weed Racks.",
		client = {
			export = "kartik-weed.useRacks",
		}
	},
    ["fertilizer"] = {
		label = "Fertilizer",
		weight = 10,
		stack = false,
		close = true,
		description = "Fertilizer"
	},

🆕 New Items

Add these for smoking, edibles, equipment, storage and police tools. Copy the matching images from the resource's IMAGES folder into ox_inventory/web/images/.

['blunt_wrap'] = {
    label = 'Blunt Wrap', weight = 10, stack = true, close = true, consume = 0, description = 'Cigar leaf for rolling blunts.',
    client = { export = 'kartik-drugs.useBluntWrap' }
},
['weed_blunt'] = {
    label = 'Blunt', weight = 30, stack = true, close = true, consume = 0, description = 'A fat blunt. Lasts a long time.',
    client = { export = 'kartik-drugs.useBlunt' }
},
['weed_bong'] = {
    label = 'Glass Bong', weight = 1200, stack = false, close = true, consume = 0, description = 'Pack the bowl with ground weed. Change the water now and then.',
    client = { export = 'kartik-drugs.useBong' }
},
['weed_vape'] = {
    label = 'Vape Pen', weight = 80, stack = false, close = true, consume = 0, description = 'Discreet. Works with THC cartridges.',
    client = { export = 'kartik-drugs.useVape' }
},
['thc_cartridge'] = {
    label = 'THC Cartridge', weight = 30, stack = true, close = true, consume = 0, description = 'Fits the vape pen.',
    client = { export = 'kartik-drugs.useCartridge' }
},
['empty_cartridge'] = {
    label = 'Empty Cartridge', weight = 20, stack = true, close = true, consume = 0, description = 'Fill it with infused weed mix.',
    client = { export = 'kartik-drugs.useEmptyCartridge' }
},
['weed_stove'] = {
    label = 'Portable Stove', weight = 2500, stack = false, close = true, consume = 0, description = 'For cooking edibles.',
    client = { export = 'kartik-drugs.useStove' }
},
['brownie_mix'] = {
    label = 'Brownie Mix', weight = 400, stack = true, close = true, consume = 0, description = 'Cook it with weed on a portable stove.',
    client = { export = 'kartik-drugs.useBrownieMix' }
},
['gelatin'] = {
    label = 'Gelatin', weight = 200, stack = true, close = true, consume = 0, description = 'Cook it with weed on a portable stove to make gummies.',
    client = { export = 'kartik-drugs.useGelatin' }
},
['weed_brownie'] = {
    label = 'Weed Brownie', weight = 80, stack = true, close = true, consume = 0, description = 'Takes a while to kick in. Then it really kicks in.',
    client = { export = 'kartik-drugs.useEdible' }
},
['weed_gummy'] = {
    label = 'Weed Gummy', weight = 20, stack = true, close = true, consume = 0, description = 'Small, sweet and sneaky.',
    client = { export = 'kartik-drugs.useEdible' }
},
['weed_generator'] = {
    label = 'Generator', weight = 20000, stack = false, close = true, consume = 0, description = 'Powers outdoor grow lights. Runs on fuel.',
    client = { export = 'kartik-drugs.useGenerator' }
},
['fuel_can'] = { label = 'Fuel Can', weight = 3000, stack = true, description = 'Refuels a generator.' },
['carbon_filter'] = {
    label = 'Carbon Filter', weight = 6000, stack = false, close = true, consume = 0, description = 'Scrubs the smell from nearby plants.',
    client = { export = 'kartik-drugs.useFilter' }
},
['grow_alarm'] = {
    label = 'Motion Alarm', weight = 1500, stack = true, close = true, consume = 0, description = 'Rings and alerts you when someone takes your plants.',
    client = { export = 'kartik-drugs.useAlarm' }
},
['trail_camera'] = {
    label = 'Trail Camera', weight = 1200, stack = true, close = true, consume = 0, description = 'Records whoever messes with your plants.',
    client = { export = 'kartik-drugs.useCamera' }
},
['stash_box'] = {
    label = 'Stash Box', weight = 3000, stack = true, close = true, consume = 0, description = 'Bury it somewhere only you know about.',
    client = { export = 'kartik-drugs.useStashBox' }
},
['thc_test_kit'] = { label = 'THC Test Kit', weight = 100, stack = true, description = 'Saliva drug test for police.' },
['evidence_cannabis'] = { label = 'Cannabis Residue Sample', weight = 50, stack = false, description = 'Analyse it at the forensic bench.' },
['cannabis_report'] = { label = 'Cannabis Analysis Report', weight = 10, stack = false },

On qb-inventory the same items work as usable items automatically. Add them to your shared items with the same names.

On this page