# mack-railroad-v6 โ Railroad Company Management System (Now includes Ambient Trains and Train Tickets for Both)
Advanced train management system for RedM (rsg-core). Buy railroad companies, hire drivers, manage trains, run missions, and build a railroad empire.
Video Link :ย https://medal.tv/games/red-dead-2/clips/mH7R19aCUjcA0im8K?invite=cr-MSxlZWgsMTkxMDIwMzU5
## Features
### ๐ข Company Ownership
- **Buy a Railroad Company** โ 4 companies available across the map ($50,000 each, configurable)
- **Rename Your Company** โ Custom company names shown on UI
- **Cash Register** โ Mission earnings split between driver and company fund
- **Withdraw Funds** โ Owner can withdraw from the company cash register
- **Sell Company** โ Sell back with refund + remaining cash register balance
### ๐ฅ Employee System
- **Apply as Driver** โ Players apply at any company station
- **Approve / Reject** โ Owner reviews applications from the management panel
- **Fire Drivers** โ Remove underperforming employees
- **Real-time Notifications** โ Driver gets notified when approved/rejected/fired
- **Owner gets notified** when a new application is submitted
### ๐ Train Fleet
- **30+ Preconfigured Trains** โ Across 4 companies (Lemoyne Central, Heartlands Express, Cumberland & Western, New Austin Rail Co.)
- **Rank-Gated Access** โ Drivers earn XP to unlock better trains (Brakeman โ Foreman)
- **Deploy at Any Station** โ Forward or reverse direction
- **Trains Start at 50%** fuel, water, and condition
### ๐ฎ Train Controls
- **Native RDR3 Controls** โ L SHIFT accelerate, L CTRL brake/reverse, Left Mouse bell, G whistle
- **Cruise Control** โ R for forward cruise, B for reverse. Train maintains speed hands-free
- **Cruise Continues When Leaving Seat** โ Set cruise and walk around while the train moves
- **Emergency Brake** โ X key for gradual stop
- **Track Switching** โ Q key toggles between main and alternate routes
- **Engine Toggle** โ via ox_target menu on the train
### ๐ Train HUD
- **Mini Clipboard UI** โ Matches the station menu style, positioned top-left
- **Live Gauges** โ Speed, fuel, water, condition with colored bars
- **Status Info** โ Engine, cruise, junction, nearest station
- **Mission Tracker** โ Shows active mission type and destination
- **Toggle with [ key** โ Hide/show the HUD while driving
### ๐ง Train Maintenance (ox_target)
- **Add Coal** (+10% fuel per coal item, with shoveling animation)
- **Fill Water** (+10% per fullbucket item, with pouring animation)
- **Oil & Repair** (+10% condition per oilcan item, with repair animation)
- **Check Condition** โ ox_lib context menu showing all stats with visual bars
- **Start/Stop Engine** โ Toggle engine from outside the train
- **Send to Yard** โ Despawn train, saves state
### ๐ฆ Missions
- **Cargo Delivery** โ Transport goods between stations with blip guidance
- **Passenger Transport** โ Board NPCs and deliver to destination
- **Rail Maintenance** โ Travel to repair locations with progress bar
- **Distance Notifications** โ "Approaching destination", "You have arrived"
- **Pay Split** โ 50/50 between driver and company (configurable)
- **Rank Pay Bonus** โ Higher rank = better pay multiplier
### ๐ช Company Supply Store
- **Owner Stocks Supplies** โ Add coal, fullbucket, oilcan from personal inventory
- **Drivers Take for Free** โ Employees access supplies at any company station
- **Per-Company Isolation** โ Company A supplies are separate from Company B
- **Stock Tracking** โ Owner sees current quantities
### ๐ Progression System
- **5 Ranks** โ Brakeman โ Fireman โ Engineer โ Conductor โ Foreman
- **XP from Missions** โ Complete deliveries to level up
- **Rank-Up Rewards** โ Cash bonuses on promotion
- **Railwayman Milestones** โ Personal achievement rewards
### ๐ All Notifications via bln_notify
- Consistent notification style across all actions
### ๐ Full Configuration
- Company purchase price, mission pay split, fuel/water/condition rates
- Train speeds, costs, ranks, upgrade tiers
- Station locations, delivery destinations, mission types
- All configurable in a single `config.lua`
---
## Dependencies
- [rsg-core](https://github.com/Rexshack-RedM/rsg-core)
- [ox_lib](https://github.com/overextended/ox_lib)
- [ox_target](https://github.com/overextended/ox_target)
- [bln_notify](https://github.com/BLN-Studio/bln_notify)
- [oxmysql](https://github.com/overextended/oxmysql)
---