A comprehensive farming system for RedM RSG-Core, allowing you to plant, water, maintain, and harvest a wide variety of crops.
- Ghost Placement System: visual placement of crops with fine-tuned positioning controls.
- Growth System:
- Server-side persistent growth (ticks every minute).
- Fertilizer boosts growth speed by 35%.
- Visual stages of plant growth.
- Maintenance:
- Manage Water levels.
- Remove Weeds to ensure healthy crops.
- Monitor Plant Health.
- Water Interaction:
- Interact with natural water sources (Rivers, Lakes) and Water Pumps.
- Fill Buckets, Drink, or Wash yourself.
- Banned Zones: Prevents farming in major towns and restricted areas.
- Shop System: NPC shops with blips to purchase seeds, tools, and fertilizer.
- Persistence: Crops and their status are saved in the database across restarts.
rsg-corersg-inventoryrsg-targetox_liboxmysql
first rename the folder to rsg-farming
- Download the resource and place it in your
resourcesfolder. - Rename the folder to
rsg-farming.
- Import the
farming.sqlfile into your database to create the necessary tables.
- Copy the contents of the
items.luafile included in this resource. - Paste them into your shared items file (e.g.,
rsg-core/shared/items.lua). - Ensure you have the corresponding images for these items in your inventory images folder.
- Add
ensure rsg-farmingto yourserver.cfgfile. - Order Matters: Ensure it is started after
rsg-core,rsg-inventory, andox_lib.
Edit config.lua to customize the server mechanics.
You can adjust how long each plant takes to grow in Config.Seeds.
- totaltime: Time in minutes for full growth.
- Watering Logic: The system automatically calculates water decay based on
totaltime.- A full bucket of water will last exactly 1/3rd of the growth cycle.
- This forces players to tend to their crops ~3 times before harvest.
Example Config Entry:
["Corn"] = {
seedname = "corn_seed",
prop = "p_corn01x",
totaltime = 15, -- 15 Minutes to grow. Needs watering every 5 mins.
rewardcount = 2, -- Base reward amount
stages = { ... } -- Multi-stage visual models
},Other settings:
- Banned Zones: Configure areas where planting is forbidden.
- Shop Locations: Add or move NPC shops.
- Look for the Green Blip ("Farming Supplies") on the map.
- Use Alt (Third-Eye) on the NPC to open the shop.
- Buy Seeds, Bucket, Fertilizer, and other tools.
- Use a Seed from your inventory to start placement mode.
- A ghost object will appear.
- Controls:
W/A/S/D: Move the plant position.Q/E: Rotate the plant.ENTER: Confirm placement.BACKSPACE: Cancel placement.
Farming is strictly prohibited within the limits of major towns and settlements. You cannot plant crops in:
- Valentine & Valentine Station
- Saint Denis
- Rhodes
- Blackwater
- Armadillo
- Annesburg
- Strawberry
- Tumbleweed
- Getting Water:
- Equip/Hold a Bucket.
- Go to a River, Lake, or Water Pump.
- Press
[ALT]when prompted to open the water menu. - Select Fill Bucket to get a
fullbucket.- You can also Drink or Wash yourself here.
You can fill your bucket at the following locations:
- Sea of Coronado
- San Luis River
- Lake Don Julio
- Flat Iron Lake
- Upper Montana River
- Owanjila
- HawkEye Creek
- Little Creek River
- Dakota River
- Beartooth Beck
- Lake Isabella
- Cattail Pond
- Deadboot Creek
- Spider Gorge
- O'Creagh's Run
- Moonstone Pond
- Roanoke Valley
- Elysian Pool
- Lannahechee River
There are 37 different types of crops you can cultivate:
| Type | Crop Name | Type | Crop Name |
|---|---|---|---|
| 🥬 | Alaskan Ginseng | 🥣 | English Mace |
| 🥬 | American Ginseng | 🍺 | Hop |
| 🍎 | Apple | 🍋 | Lemon |
| 🍌 | Banana | 🥬 | Lettuce |
| 🌾 | Barley | 🌿 | Milk Weed |
| 🍇 | Black Currant | 🌿 | Oleander Sage |
| 🌺 | Blood Flower | 🌿 | Oregano |
| 🥦 | Broccoli | 🍄 | Parasol Mushroom |
| 🌼 | Choc Daisy | 🍑 | Peach |
| 🍒 | Cherry | 🌶️ | Pepper |
| ☕ | Coffee | 🥔 | Potato |
| 🌽 | Corn | 🌺 | Prairie Poppy |
| 🍒 | Creekplum | 🎃 | Pumpkin |
| 🌿 | Creeking Thyme | 🍇 | Red Raspberry |
| 🧅 | Crows Garlic | 🌿 | Red Sage |
| 🍬 | Sugar (Sugarcane) | 🍵 | Tea |
| 🍂 | Tobacco | 🌾 | Wheat |
| 🥕 | Wild Carrot | 🌿 | Wild Mint |
| 🫐 | Wintergreen Berry | 🌼 | Yarrow |
- Tending Crops:
- Go to your planted crop.
- Use Alt (Third-Eye) and select Inspect Crop.
- A menu will open showing:
- Water %, Health %, Weed %, Growth %.
- Perform actions:
- Water: Requires
fullbucket. - Fertilize: Requires
fertilizer(Speeds up growth). - Remove Weeds: Keeps the plant healthy.
- Water: Requires
- Monitor the Growth %.
- Once it reaches 100%, the Harvest option will become available in the menu.
- Harvest to receive your crops!
- Script created by devchacha
