๐ Silly Cattle โ Herding & Selling System (RedM / VORP / RSGCore)
A complete herding loop for RedM. Use a herd item near the herd farm, drive your cows / sheep / goats / pigs to a market, and sell them for cash + meat / wool / milk. Keep an eye on the horizon โ wolf packs may come for your livestock.
โจ Features
- ๐ 4 herd types by default: cows, sheep, goats, pigs (fully configurable)
- ๐ Use a herd item near the farm โ animals spawn, follow you in formation, and a route appears on the map
- ๐บ๏ธ Random sell point out of a configurable list
- ๐ฐ Per-animal reward โ money + multiple item drops, scaled by how many animals you deliver
- ๐บ Wolf pack event โ random pack spawns to attack your herd / you (config: size, radius, timing, targets)
- โฑ๏ธ Herd lifetime timer โ herd despawns after X seconds if not delivered (with on-screen countdown)
- ๐ช Sell prompt with
[G]press, server-validated ownership before payout - ๐งน Cleanup โ leftover animals are wiped on resource start/stop, character switch and respawn
- ๐ Cooldown per herd item to prevent spam
- ๐ Multi-Framework: VORP or RSGCore (auto-detected)
- ๐ฆ Escrow-friendly:
config.luais ignored by escrow so you can fully tweak it
โ Dependencies
- RedM
- VORP Core or RSGCore (auto-detected)
- VORP Inventory (when using VORP) / RSGCore inventory (when using RSGCore)
๐ฆ Installation
-
Place
Silly_Cattlein your server resources folder. -
Ensure it in your
server.cfg:ensure Silly_Cattle -
Add the herd items to your inventory database (
cowherd,goatherd,sheepherd,pigherdby default โ names can be changed inconfig.lua). -
Adjust farm coordinates, sell points, rewards and wolf pack settings in
config.lua.
โ๏ธ Configuration (config.lua)
Framework
-
Config.Frameworkโ'auto'/'vorp'/'rsgcore'/'standalone' -
Config.RewardAccountโ VORP:money/gold/rolโ RSGCore:cash/bank
Herd setup
-
Config.Herdsโ table of herds:{ label, model, coords }(key = item name) -
Config.AnimalAmountโ number of animals spawned per use -
Config.SpawnDistance/Config.FollowDistanceโ formation around the player -
Config.UseRadiusโ how close to the farm coords the player must be -
Config.CooldownSecondsโ per-item cooldown -
Config.HerdLifetimeโ seconds before the herd runs off if not delivered
Sell
-
Config.SellPointsโ list ofvector3drop-off coordinates (random one is picked) -
Config.SellRadiusโ radius for the sell prompt -
Config.Rewards[itemName] = { money = 60, items = { { name = "beef", amount = 2 }, ... } }
Wolf pack event
-
Config.WolfPack.Enabled -
Config.WolfPack.SpawnTimeMin/SpawnTimeMax(minutes after herding starts) -
Config.WolfPack.SpawnRadius,PackSize,Model -
Config.WolfPack.AttackPlayer/AttackAnimals -
Config.WolfPack.DeleteOnHerdEnd
๐ฎ In-Game Flow
- Player buys a herd item (e.g.
cowherd) and stands near the farm coords. - They use the item โ animals spawn and follow them.
- A blip + GPS route shows the random sell point.
- (Optional) A wolf pack attacks the herd somewhere along the way.
- Player reaches the sell point โ press [G] to deliver.
- Server validates the herd, removes the animals, and pays out money + items based on how many animals survived.
๐ Multi-Framework Support
| Feature | VORP | RSGCore |
|---|---|---|
| Usable item | โ
vorp_inventory:registerUsableItem | โ
RSGCore.Functions.CreateUseableItem |
| Remove / add item | โ
vorp_inventory:subItem/addItem | โ
Player.Functions.RemoveItem/AddItem |
| Money | โ
Character.addCurrency | โ
Player.Functions.AddMoney |
| Notifications | โ
vorp:TipBottom | โ
RSGCore:Notify |
๐ Notes
- All triggers use the
silly_cattle:*namespace so it can run side-by-side with other Silly resources without conflicts. - Server-side validation: only the player who started the herd can sell it, amount is capped at
Config.AnimalAmount, money/items are based on delivered animals. - The resource is fully escrow-friendly โ
config.luais in theescrow_ignorelist offxmanifest.lua.

