FreeScript
devchacha-ranch
by Devchacha01 · version 2026.07.22 · updated 3 days ago
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 939 KB
- Code check
- Clean
- Licence
- GPL-2.0
- Released
- Nov 2026
A comprehensive ranching system for RedM built on the VORP Core framework. This resource allows players to purchase ranches, manage ledgers, hire employees, rai
VORP Ranch - Advanced Animal Husbandry & Management for RedM
A comprehensive ranching system for RedM built on the VORP Core framework. This resource allows players to purchase ranches, manage ledgers, hire employees, raise animals, collect products, craft goods, trade livestock, and sell their ranch to other players or the government.
🌟 FeaturesRanch Ownership & Economy
Ensure you have the following VORP Core dependencies installed:
To register the ranching jobs in your server, open VORP_JOBS.lua in this resource's root directory. Copy all the definitions inside and paste them into your:
This ensures players can be properly assigned to the ranch jobs (from Grade 0 to Grade 4) and prevents administrative command validation errors.
Step 4: VORP Item Registration
To use the feeding, manure collection, and crafting features, you must register all the items used by this resource inside your VORP database
The required items are:
By default, ranches start as public (unowned).
While players can buy ranches dynamically, admins can still assign players to ranch jobs using standard VORP admin commands:
If manually assigning a Ranch Boss, set their grade to
3. Configuring Taxes, Prices, and Growth
You can adjust pricing, tax intervals, and growth rates in
A comprehensive ranching system for RedM built on the VORP Core framework. This resource allows players to purchase ranches, manage ledgers, hire employees, raise animals, collect products, craft goods, trade livestock, and sell their ranch to other players or the government.
🌟 FeaturesRanch Ownership & Economy
- Ranch Purchase System: Public ranches can be bought by players for a configurable price (Default: $100,000 cash). The buyer instantly becomes the Ranch Boss (Grade 4).
- Sell Ranch to Player: Bosses can transfer ranch ownership to a nearby player for the full purchase price. The buyer pays cash directly to the seller. All employees, animals, and objects are wiped — the new owner starts fresh.
- Sell Ranch to Government: Bosses can sell back to the government for 50% of the purchase price (e.g. $100,000 ranch → $50,000 refund). Everything is wiped — employees fired, animals deleted, storage cleared.
- Ledger & Tax System:
- Ranches require a weekly tax of $1,500 cash deducted automatically from the ranch ledger funds.
- Bosses/Managers can deposit cash into the ledger to pre-pay taxes (e.g. $3,000 deposited = "2 Weeks Tax Paid").
- Repossession: If the ledger has less than $1,500 on tax day, the ranch is repossessed (owner cleared, employees removed, animals deleted, and player jobs reset to
unemployed).
- Animal Growth System (Only While Spawned):
- Animals only grow when they are spawned (taken out of the barn). Animals in the barn do not age, lose hunger, or grow.
- Animals start as babies (small visual scale) and grow over real time depending on their species:
- Cow & Bull: 3 hours IRL to grow fully.
- Sheep, Goat, Pig, Chicken, & Rooster: 2 hours IRL to grow fully.
- Requires Feeding: Animals will not grow if their hunger drops below 30%. Feed them with
animal_feed. - Needs & Health: Animals experience hunger decay only while spawned. Starvation slowly drops health.
- Max 5 Active Animals: Each player can have a maximum of 5 animals spawned at any time.
- Herding System: Round up nearby animals and herd them as a group.
- Breeding: Breed compatible animals for a chance at offspring.
- Ranch Bosses (Grade 4) and Managers (Grade 3) can hire nearby players.
- Bosses can promote, demote, or fire employees (updates database instantly, even for offline players).
- Max 20 employees per ranch, with a cap of 4 Managers (Grade 3).
- Buy animals at the Livestock Dealer (marked on map).
- Sell animals back to the dealer:
- Babies sell for 60% of buy price.
- Fully grown animals sell for 2x the purchase price and reward bonus resources (Milk, Meat, Wool, Eggs, Leather, etc.).
- 20% of sale profit goes back into the ranch ledger.
- Proximity HUD Prompts: Uses native immersive HUD prompts for all interactions (no
ox_target/ox_libdependency). - Auto-Close Status UI: The animal status panel automatically closes if you walk away from the animal (>4m) or if the animal despawns.
- Western-Themed UI: Full custom parchment-style UI with icon.png and bar.png textures.
- Distinct Stashes: Each ranch has its own dynamic storage restricted to Grade 3+.
- Crafting Table: Place a crafting table at your ranch to produce Cheese, Butter, Fertilizer, and more.
Ensure you have the following VORP Core dependencies installed:
vorp_corevorp_inventoryvorp_inputs(Advanced input menu)oxmysql
- Import the SQL file
devchacha-ranch.sqlinto your database. - The script automatically migrates the
devchacha_ranch_fundsanddevchacha_ranch_animalstables on startup to add VORP-compatible columns (owner,last_tax_deduction,citizenid, andspawned).
To register the ranching jobs in your server, open VORP_JOBS.lua in this resource's root directory. Copy all the definitions inside and paste them into your:
[vorp_core]/config/jobs.lua file under the Config.REGISTERED_JOBS = { ... } block.This ensures players can be properly assigned to the ranch jobs (from Grade 0 to Grade 4) and prevents administrative command validation errors.
Step 4: VORP Item Registration
To use the feeding, manure collection, and crafting features, you must register all the items used by this resource inside your VORP database
items table. Run the SQL inserts appended at the bottom of the devchacha-ranch.sql file.The required items are:
-
animal_feed(Used to feed animals) -
shovel(Used to dig manure) -
manure(Harvested from manure piles, used in recipes) -
milk,wool,egg,leather,feather,raw_meat(Products from grown livestock) -
cheese,butter,fertilizer(Crafted goods) -
wheat,corn(Crafting ingredients)
By default, ranches start as public (unowned).
- To put a ranch up for sale, ensure it has
owner = NULLin the database tabledevchacha_ranch_funds. - Setting a ranch owner to
NULLwill automatically reset the ledger and allow any player with $100k cash to buy it.
While players can buy ranches dynamically, admins can still assign players to ranch jobs using standard VORP admin commands:
/setjob [playerid] [jobname] [grade]If manually assigning a Ranch Boss, set their grade to
4.3. Configuring Taxes, Prices, and Growth
You can adjust pricing, tax intervals, and growth rates in
config.lua:
Config.WeeklyTax: Ledger deduction amount (Default: $1,500).Config.Ranches[...].price: Cost to purchase a public ranch (Default: $100,00