Skip to main content

fiveLib Weed

fiveLib Weed is a realistic, advanced farming script that allows players to grow, harvest, and sell weed with a progression-based reputation system.

Overview

  • Realistic Growth: Multi-stage plant growth requiring care (water, fertilizer).
  • Soil Quality: Soil conditions affect the speed and quality of the yield.
  • Reputation System: Players earn XP by farming, unlocking better efficiency.
  • Indoor/Outdoor: Plants can be grown in various environments with persistent SQL saving.

Features

  • Target Interactions: Clean UI for all planting and harvesting actions.
  • NPC Selling: Integrated system to sell your product to local NPCs with police risk.
  • Highly Configurable: Every aspect of growth, yield, and pricing can be tuned.
  • Optimized: Designed for high-player-count servers with minimal database load.

Requirements

  • Framework: QB-Core, ESX.
  • Database: oxmysql.
  • Interactions: qb-target / DrawMarkers.

Installation

  1. Upload: Place the fiveLib-weed folder in your resources directory.
  2. Database: Import the provided SQL file to enable plant persistence.
  3. Items: Add the required items (seeds, water, etc.) to your inventory system.
  4. Register: Add ensure fiveLib-weed to your server.cfg.
  5. Restart: Restart the server or run ensure fiveLib-weed.

Configuration

Settings are located in config.lua.

  • Config.Framework: Set your framework ('qb', 'esx').
  • Config.GrowthSpeed: Adjust how fast plants transition through stages.
  • Config.Yields: Configure the amount of item received per harvest.
  • Config.Selling: Set NPC locations, prices, and police requirements for sales.

Framework Support

Full support for QB-Core, ESX.

Usage

  • Planting: Use a seed item at a suitable location to begin the growth process.
  • Care: Regularly check on your plants to ensure they have enough water and fertilizer.
  • Harvesting: Once fully grown, harvest the plant to receive the final product.
  • Selling: Locate an NPC dealer to trade your goods for cash.

Support

Support is provided via our Discord Server.