Container Farming System
- Containers
- Acquisition:
- Containers can be purchased from the Container Farming Shop.
- A flatbed carrying the container will spawn, and players must find a suitable location to place it.
- Configuration:
- Buying permissions can be restricted to specific job, preventing unauthorized players from buying containers.
- Ownership can be reassigned via the control panel after the container is placed.
- Placement Requirements:
- Allowed positions are marked on the map through the Container Farming Shop, with waypoints for guidance.
- Containers can only be placed on flat surfaces where all corners are level.
- Placement is restricted to locations with unobstructed sides to ensure proper watering functionality.
- Acquisition:
- XP & Levels
- Earning XP:
- Containers gain XP with each harvested plant.
- Level Benefits:
- Unlock upgrades such as increased growing space, additional water crates, and fertilizer barrels.
- Gain boosts like faster growth rates, reduced water usage, higher yields, and lower fertilizer consumption.
- Earning XP:
- Consumable Parts
- Essential Components:
- Fuse: Without it, plant growth slows significantly.
- Water Filter: Required for maintaining optimal growth rates.
- Fertilizer Mixer: Enables the application of fertilizer boosts.
- Essential Components:
- Watering
- Watering System:
- Players must purchase a Watercrate item, which can be loaded onto pickup trucks.
- A Waterpipe is needed to connect the watercrate to the farming container.
- Water Collection:
- Water is pumped from natural bodies of water and transported to farming containers to refill their watercrates.
- Watering System:
- Plants
- Available plant types include:
- Tomato
- Onion
- Carrot
- Mushroom
- Weed
- Available plant types include:
- Shop
- All required items can be purchased from the Container Farming Shop.
Configurations
- Boosts & Unlocks:
- Customize unlockable upgrades and boosts for XP and levels.
- Consumable Parts:
- Adjust component behavior and durability.
- Container Lifespan:
- Define the number of days a container can remain unused before it is destroyed.
- Allowed Installation Locations:
- GTA Zones:
- Enable or disable specific zones for container placement.
- A debug visualizer shows the zone borders.
- Custom Zones:
- Create custom blocked or allowed zones.
- A debug visualizer displays these custom zone boundaries.
- Highways and Roads:
- Set a minimum distance that containers must maintain from roads.
- GTA Zones:
- Plant Settings:
- Adjust growth time, seed-to-batch ratios, harvest yields, and more.
- Optimization
- The system is well-optimized. Two loops run only when the player is driving a flatbed with a container or using the map to check suitable placement locations.
- On the server side, plant growth is simulated using timestamps.
- Compatibility
- This system is compatible with the following frameworks and libraries:
- qbox
- esx
- ox_lib
- ox_target
- ox_inventory
- qb-core
- qb-target
- qb-inventory
- This system is compatible with the following frameworks and libraries: