This resources provides a system that allows players to plant, harvest, and process weed on your FiveM server.
- Ensure items exist & configure your inventory system to call the proper exports on item use.
ox_inventory example
["weedplant_seedf"] = {
label = "Female Weed Seed",
weight = 0,
stack = true,
close = true,
description = "Female Weed Seed",
client = {
image = "weedplant_seed.png",
export = 'citra_weed.plant',
}
},
["weedplant_seedm"] = {
label = "Male Weed Seed",
weight = 0,
stack = true,
close = false,
description = "Male Weed Seed",
client = {
image = "weedplant_seed.png",
export = 'citra_weed.plant',
}
},
["weedplant_rack"] = {
label = "Drying Rack",
weight = 50000,
stack = false,
close = true,
description = "A large drying rack",
client = {
export = 'citra_weed.deployRack',
},
},
["lighter"] = {
label = "Lighter",
weight = 0,
stack = true,
close = true,
description = "On new years eve a nice fire to stand next to",
client = {
image = "lighter.png",
}
},
["plant_tub"] = {
label = "Plant Tub",
weight = 1000,
stack = true,
close = false,
description = "Pot for planting plants",
client = {
image = "plant_tub.png",
}
},
["waterbottle"] = {
label = "Water",
weight = 500,
stack = true,
close = true,
description = "For all the thirsty people out there",
client = {
image = "water_bottle.png",
}
},
["weed_nutrition"] = {
label = "Plant Fertilizer",
weight = 2000,
stack = true,
close = true,
description = "Plant nutrition",
client = {
image = "weed_nutrition.png",
}
},
["empty_weed_bag"] = {
label = "Empty Weed Bag",
weight = 0,
stack = true,
close = true,
description = "A small empty bag",
client = {
image = "weed_baggy_empty.png",
}
},
["weedplant_weed"] = {
label = "Homegrown 2g",
weight = 100,
stack = true,
close = false,
description = "Weed ready for the streets",
client = {
image = "weedplant_weed.png",
}
},
- Tune
shared/config.lua
to your liking.