Skip to content

Latest commit

 

History

History
116 lines (101 loc) · 5.99 KB

README.md

File metadata and controls

116 lines (101 loc) · 5.99 KB

Project Sloth Weed Planting

Script provides the convenience of planting weed anywhere using both male and female seeds, along with additional features like watering, harvesting branches, drying, and packing the weed.

For all support questions, ask in our Discord support chat. Do not create issues if you need help. Issues are for bug reporting and new features only.

Preview

image image image

Dependencies

Installation

  • Download ZIP
  • Drag and drop resource into your server files, make sure to remove -main in the folder name
  • Add the items below to your framework

older qb-core

Add to your qb-core > shared > items.lua

['weedplant_seedm'] 			 = {['name'] = 'weedplant_seedm', 			    ['label'] = 'Male Weed Seed', 			['weight'] = 0, 		['type'] = 'item', 		['image'] = 'weedplant_seed.png', 		['unique'] = false, 	['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Male Weed Seed'},
['weedplant_seedf'] 			 = {['name'] = 'weedplant_seedf', 			    ['label'] = 'Female Weed Seed', 		['weight'] = 0, 		['type'] = 'item', 		['image'] = 'weedplant_seed.png', 		['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Female Weed Seed'},
['weedplant_branch'] 			 = {['name'] = 'weedplant_branch', 			    ['label'] = 'Weed Branch', 				['weight'] = 10000, 	['type'] = 'item', 		['image'] = 'weedplant_branch.png', 	['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Weed plant'},
['weedplant_weed'] 				 = {['name'] = 'weedplant_weed', 			    ['label'] = 'Dried Weed', 				['weight'] = 100, 		['type'] = 'item', 		['image'] = 'weedplant_weed.png', 		['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Weed ready for packaging'},
['weedplant_packedweed'] 		 = {['name'] = 'weedplant_packedweed', 			['label'] = 'Packed Weed', 				['weight'] = 100, 		['type'] = 'item', 		['image'] = 'weedplant_weed.png', 		['unique'] = true, 		['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Weed ready for sale'},
['weedplant_package'] 			 = {['name'] = 'weedplant_package', 			['label'] = 'Suspicious Package', 		['weight'] = 10000, 	['type'] = 'item', 		['image'] = 'weedplant_package.png', 	['unique'] = true, 		['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Suspicious Package'},

new qb-core update

Add to your qb-core > shared > items.lua

--- ps-weedplanting
weedplant_seedm 			 = {name = 'weedplant_seedm', 			    label = 'Male Weed Seed', 			weight = 0, 		type = 'item', 		image = 'weedplant_seed.png', 		unique = false, 	useable = false, 	shouldClose = false,   combinable = nil,   description = 'Male Weed Seed'},
weedplant_seedf 			 = {name = 'weedplant_seedf', 			    label = 'Female Weed Seed', 		weight = 0, 		type = 'item', 		image = 'weedplant_seed.png', 		unique = false, 	useable = true, 	shouldClose = true,	   combinable = nil,   description = 'Female Weed Seed'},
weedplant_branch 			 = {name = 'weedplant_branch', 			    label = 'Weed Branch', 				weight = 10000, 	type = 'item', 		image = 'weedplant_branch.png', 	unique = true, 		useable = false, 	shouldClose = false,   combinable = nil,   description = 'Weed plant'},
weedplant_weed 		     	 = {name = 'weedplant_weed', 			    label = 'Dried Weed', 				weight = 100, 		type = 'item', 		image = 'weedplant_weed.png', 		unique = false, 	useable = false, 	shouldClose = false,   combinable = nil,   description = 'Weed ready for packaging'},
weedplant_packedweed 		 = {name = 'weedplant_packedweed', 			label = 'Packed Weed', 				weight = 100, 		type = 'item', 		image = 'weedplant_weed.png', 		unique = true, 		useable = false, 	shouldClose = false,   combinable = nil,   description = 'Weed ready for sale'},
weedplant_package 			 = {name = 'weedplant_package', 			label = 'Suspicious Package', 		weight = 10000, 	type = 'item', 		image = 'weedplant_package.png', 	unique = true, 		useable = false, 	shouldClose = false,   combinable = nil,   description = 'Suspicious Package'},

ox_inventory

Add to ox_inventory > data > items.lua

["weedplant_seedf"] = {
    label = "Female Weed Seed",
    weight = 0,
    stack = true,
    close = true,
    description = "Female Weed Seed",
    client = {
        image = "weedplant_seed.png",
    }
},

["weedplant_seedm"] = {
    label = "Male Weed Seed",
    weight = 0,
    stack = true,
    close = false,
    description = "Male Weed Seed",
    client = {
        image = "weedplant_seed.png",
    }
},

["weedplant_branch"] = {
    label = "Weed Branch",
    weight = 10000,
    stack = false,
    close = false,
    description = "Weed plant",
    client = {
        image = "weedplant_branch.png",
    }
},

["weedplant_packedweed"] = {
    label = "Packed Weed",
    weight = 100,
    stack = false,
    close = false,
    description = "Weed ready for sale",
    client = {
        image = "weedplant_weed.png",
    }
},

["weedplant_package"] = {
    label = "Suspicious Package",
    weight = 10000,
    stack = false,
    close = false,
    description = "Suspicious Package",
    client = {
        image = "weedplant_package.png",
    }
},

["weedplant_weed"] = {
    label = "Dried Weed",
    weight = 100,
    stack = true,
    close = false,
    description = "Weed ready for packaging",
    client = {
        image = "weedplant_weed.png",
    }
},

Credits