[Project Sloth][FREE] PS Weedplanting

ps-weedplanting

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 support chat. Do not create issues if you need help. Issues are for bug reporting and new features only.

Preview

image
image
image
image
image

Download

Dependencies

Installation

  • Download ZIP
  • Drag and drop resource into your server files, make sure to remove -main in the folder name
  • Run the attached SQL script (weedplanting.sql)
  • Start resource through server.cfg
  • Restart your server.

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'},
['plant_tub'] 			         = {['name'] = 'plant_tub', 			        ['label'] = 'Plant Tub', 		     	['weight'] = 1000, 		['type'] = 'item', 		['image'] = 'plant_tub.png', 		    ['unique'] = false, 	['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Pot for planting plants'},
['empty_watering_can'] 			 = {['name'] = 'empty_watering_can', 			['label'] = 'Empty Watering Can', 		['weight'] = 500, 		['type'] = 'item', 		['image'] = 'watering_can.png', 	    ['unique'] = true, 	    ['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Empty watering can'},
['full_watering_can'] 			 = {['name'] = 'full_watering_can', 			['label'] = 'Full Watering Can', 		['weight'] = 1000, 		['type'] = 'item', 		['image'] = 'watering_can.png', 	    ['unique'] = true, 	    ['useable'] = false, 	['shouldClose'] = false,	   ['combinable'] = nil,   ['description'] = 'Watering can filled with water for watering plants'},

Credits

13 Likes

possibility of esx

1 Like

esx???

2 Likes

make it for esx pls @Lionh34rt without ox

7 Likes

up, please please

2 Likes

Nice job

1 Like

Our scripts are mainly for QBCore, we have only done a convert once to ESX and that was the ps-multijob.

We shall see if we’ll convert this but more than likely we will not.

The resource is open source on GitHub, feel free to fork it and make your own conversion to ESX.

1 Like

ongoing

1 Like

I had a quick look at config, can you set what type of surface it can be grown on? like dirt/grass only etc?

image
Anyone else having the plant spawn about 1/2 way through the floor?

I know a few people wanted the esx version so i’ve added a fork for it :+1: It requires ox lib for menu handling etc but is tested and working afaik

Looks like someone changed this in a PR for some reason, It fixes whenever you redo the commit back to Shared.ObjectZOffset = -0.002

Fantastic script, thanks!

Scripts work perfect I would like to see more strains of weed added.

2 Likes
  1. Can you make it so you can package more then one bag at a time (at delivery guy)

2.Would love to see more strains added.

3.Possibly some prop support for adding lights and tarps

  1. make packages stealable from the delivery ped

with ox

without ox

Hi… it´s possible to make a planting zone ? Only be able to plant in configured zones. Btw nice script :heart_eyes:

i cant get it to work, followed the steps, is there a command i am missing? i can get a plat tub, and seeds, just cant do anything with them?

Are the watering cans refillable?