Installation
Overview
ML Planting is a cultivation system. Players plant seeds, water and fertilize them, and harvest the results. Supports multiple plant types, growth zones with multipliers, ground material restrictions, and a full admin panel.
Quick Start
- Download from CFX Portal
- Extract to your
resourcesfolder asml_planting - Add to
server.cfg:
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_plantingml_planting must start AFTER ml_bridge. Incorrect order causes startup errors.
Database
Tables are created automatically on first start:
ml_planting_plants - Active plants (position, water, fertilizer, health, growth)
ml_planting_types - Plant type definitions (stages, harvest, water/fertilizer config)
ml_planting_categories - Plant categories with defaults
ml_planting_zones - Growth zones (multipliers, allow/block lists, blips)
Plant types, categories, and growth zones are managed through the admin panel.
Admin Panel
Access the admin panel with:
1/plantadminRequires admin permission from your framework, resolved through ml_bridge (the admin/god group on QBCore, Qbox and ESX, or ACE admin on standalone).
Verify
Start the server and check the console for:
1[ml_planting] Resource started
2[ml_planting] Ready! Loaded 0 plants in 0 chunks, 1 zonesOpen the admin panel to create your first plant type and seed items.
- Plants not spawning - Check that the prop model exists in GTA and ground material restrictions are not blocking placement.
- Admin panel not opening - Verify you have admin permission on your framework (
ml_bridgeresolves the check). - Growth stuck - Plants stop growing completely when water reaches 0. Water the plant and growth resumes; progress is computed from elapsed time.