๐ŸดStables

Players can buy, store, retrieve, modify, or capture horses and carts. Every interaction is persistent and logged to Discord.

โš™๏ธ Overview

The Stables System allows players to:

  • ๐ŸŽ Buy, manage and customize horses and carts

  • ๐Ÿงณ Store or retrieve them from a stable or relay

  • ๐Ÿ—บ๏ธ Recall lost or distant mounts (paid by distance)

  • โœ๏ธ Rename and edit visual equipment (mane, tail, bags, saddle, etc.)

  • โŒ Delete a mount permanently

  • ๐Ÿชถ Capture or sell wild horses (job restriction)

  • ๐Ÿ’ฌ Automatically log every important action to Discord

  • ๐Ÿ•ต๏ธ Horse theft: ownership can be transferred if someone stows your mount.

  • โ˜ ๏ธ Permanent death: dead horses cannot be revived; their inventory is wiped and the mount is unusable forever.

  • ๐Ÿ”ฅ Fire disable: if a cart burns, it is disabled until the next server reboot.

โš ๏ธ A horse or cart stored in a relay or a stable is only accessible from that same relay or stable.

All mounts persist through server restarts โ€” if you left a horse outside, it will remain exactly where you parked it.


๐Ÿ‡ Horses

๐Ÿ›’ Buying Horses

Horses are sorted by categories.

Each model includes:

  • ๐Ÿ’ฐ Price

  • ๐Ÿ“ฆ Storage capacity

  • ๐Ÿ“ Description

  • ๐Ÿด Model hash

Example (excerpt from config.lua):

When buying a horse:

  • The player must choose a name (5โ€“15 alphanumeric characters, no spaces)

  • The horse is added to their stable

  • A unique shared inventory is created automatically ๐Ÿ”’ Only the horse or cartโ€™s owner can access this inventory.

  • A Discord log is sent confirming the purchase


๐Ÿ”„ Recall System

If your horse is too far away, you can recall it directly from the stable menu.

  • Free if closer than 100 meters

  • Otherwise: $0.05 per meter โ†’ 1000 m = $50

  • Once recalled, the horse is removed from the world and placed safely back in the stable

Example notification:

๐Ÿด You paid $50 to recall โ€œMustangโ€.

A detailed log is also sent to Discord (including distance and price).


๐Ÿชถ Relays

Relays are temporary storage points for mounts (horses only), perfect during long travels. They work like small stables but are independent from the main one.

Defined in config.lua:

Players can:

  • Store or retrieve horses.

  • Use relays for RP routes or missions


โšฐ๏ธ Death and Deletion

๐Ÿ’€ Death

  • Dead horses are marked as โ€œdeadโ€ permanently.

  • They cannot be revived or used again.

  • Their inventory is automatically deleted.

  • A log is sent to Discord:

    โ˜ ๏ธ John killed a horse named โ€œMustangโ€ (ID #3)

๐Ÿ—‘๏ธ Deletion

  • Players can delete a horse or cart manually.

  • They must confirm by typing its exact name.

  • The entry is soft-deleted (hidden from DB and UI).

  • Its inventory is permanently removed.


๐Ÿ›ป Carts

Carts behave just like horses but can be restricted by job.

Example:


๐Ÿชถ Horse Capture

The defined job (Config.CaptureJob) can capture wild horses found in the world.

Requirements

  • Must belong to the defined job

  • Only horses that are unowned can be captured

  • Only models listed in Config.AllHorses are capturable

In config.lua:


๐ŸŽ Capture Flow

When a player captures a wild horse:

  • They find and approach a wild horse in the world.

  • They must bring it back to a stable.

  • Once at the stable, they select โ€œCapture the horseโ€ in the menu.

  • A confirmation window then appears offering two options:

Option
Result

๐Ÿ’ฐ Sell the horse

Instantly sells it for 1/10 of its stable price

๐Ÿด Keep it

Adds it to the playerโ€™s stable like a purchased horse


๐Ÿ’ต Example

Model
Stable Price
Capture Sale
Keep

Mustang

$800

$80

Added to stable

Logs are automatically sent to Discord:


๐Ÿ’ฌ Discord Logs

Every action triggers a formatted log sent to your Discord channel.

Action
Example Log

๐ŸŽ Purchase

+ purchased a horse: Mustang ($800)

๐Ÿšš Recall

+ initiated a recall for Mustang (ID: 12) at ~250 m for $12

๐Ÿ”ฅ Fire

- FIRE detected on a cart (ID: 34)

โšฐ๏ธ Death

- Permanently killed a horse (Mustang)

๐Ÿ›ป Deletion

- Removed a cart (ID: 3)

๐Ÿชถ Capture

- Captured a wild horse (Model: Mustang, $80)

๐Ÿ’ฐ Sale

- Sold a horse (Model: Mustang, $80)

Configure your webhook inside config.lua:


๐Ÿงฉ Exports

โž• Create a Horse or Cart

Creates a new horse or cart inside the playerโ€™s stable. It automatically registers an inventory in VORP Inventory.

Example:



๐ŸŒ Supported Languages

You can add a new language by:

  1. Extending the NUI translations in translate.js

  2. Adding the same language keys in Config.Txt (server messages)

Available in 6 languages:

  • ๐Ÿ‡ซ๐Ÿ‡ท French

  • ๐Ÿ‡ฌ๐Ÿ‡ง English

  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish

  • ๐Ÿ‡ฉ๐Ÿ‡ช German

  • ๐Ÿ‡ต๐Ÿ‡น Portuguese

  • ๐Ÿ‡ฎ๐Ÿ‡น Italian

Select your language in config.lua:


๐Ÿง  Summary

Category
Feature

๐Ÿด Horses

Purchase, store, edit, recall, delete, Job restrictions, inventory

๐Ÿ›ป Carts

Purchase, store, delete, Job restrictions, inventory

๐Ÿชถ Capture

Native-exclusive capture or sell

๐Ÿ’ฌ Discord

Logs every stable action

๐Ÿ’พ Persistence

Fully saved and restored

๐ŸŒ Languages

6 translations included (you can add more)

โš™๏ธ Exports

Create

๐Ÿ”ง Config

Everything editable in config.lua

Last updated