|Preview|
Click here to see a preview
|Information|
Weed script that includes planting, taking care, harvesting, admin menu, discord webhooks, custom colored props, police interactions, joints and etc.
Add this in your qb-core/shared/items.lua:
['fx_scissors'] = {['name'] = 'fx_scissors', ['label'] = 'Scissors', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_scissors.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Scissors'},
['fx_weedbucket'] = {['name'] = 'fx_weedbucket', ['label'] = 'Bucket', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_weedbucket.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Bucket'},
['fx_fertilizer'] = {['name'] = 'fx_fertilizer', ['label'] = 'Fertilizer', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_fertilizer.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Fertilizer'},
['fx_purplekushseed'] = {['name'] = 'fx_purplekushseed', ['label'] = 'Purple Kush Seed', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_purplekushseed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Purple Kush Weed Seed'},
['fx_lemonhazeseed'] = {['name'] = 'fx_lemonhazeseed', ['label'] = 'Lemon Haze Seed', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_lemonhazeseed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lemon Haze Weed Seed'},
['fx_whitewidowseed'] = {['name'] = 'fx_whitewidowseed', ['label'] = 'White Widow Seed', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_whitewidowseed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'White Widow Weed Seed'},
['fx_purplekushleaf'] = {['name'] = 'fx_purplekushleaf', ['label'] = 'Purple Kush Leaf', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_purplekushleaf.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Purple Kush Weed Leaf'},
['fx_lemonhazeleaf'] = {['name'] = 'fx_lemonhazeleaf', ['label'] = 'Lemon Haze Leaf', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_lemonhazeleaf.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lemon Haze Weed Leaf'},
['fx_whitewidowleaf'] = {['name'] = 'fx_whitewidowleaf', ['label'] = 'White Widow Leaf', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_whitewidowleaf.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'White Widow Weed Leaf'},
['fx_purplekushjoint'] = {['name'] = 'fx_purplekushjoint', ['label'] = 'Purple Kush Joint', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_purplekushjoint.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Purple Kush Weed Joint'},
['fx_lemonhazejoint'] = {['name'] = 'fx_lemonhazejoint', ['label'] = 'Lemon Haze Joint', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_lemonhazejoint.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lemon Haze Weed Joint'},
['fx_whitewidowjoint'] = {['name'] = 'fx_whitewidowjoint', ['label'] = 'White Widow Joint', ['weight'] = 0, ['type'] = 'item', ['image'] = 'fx_whitewidowjoint.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'White Widow Weed Joint'},
And this to your database:
CREATE TABLE `fx_weed` (
`id` int(11) NOT NULL,
`coords` varchar(255) NOT NULL,
`type` varchar(50) NOT NULL,
`state` float DEFAULT 0,
`growth` float DEFAULT 0,
`fertilizer` float DEFAULT 1,
`water` float DEFAULT 1,
`owner` varchar(75) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|Config|
Click here to see the config
|Dependencies|
qb-core
oxmysql (haven’t tried others)
fxprogressbar (will add support for others in the near future)
qb-target (optional)
polyzone (optional)
fxnotify(optional)
fxtextui(optional)
fxskillcheck(optional)
|Escrow Asset System|
This resource uses the Escrow Asset System
|Download (24.00€ INC. TAX)|
Get this resource at Tebex
| Code is accessible | No (cl_unlocked, sv_unlocked) |
| Subscription-based | No |
| Lines (approximately) | 2000+ (w/o config, lang, etc.) |
| Requirements | QB, fx_progressbar |
| Support | Yes |



