What you need
- A RedM server with RSG Core (and
rsg-inventory) or VORP Core (andvorp_inventory). - oxmysql (the database connection both frameworks already use).
Step by step
1
Copy the folder
Put the
rco-steamline folder inside your server’s resources folder.2
Add it to server.cfg
Start it after your database, your framework and its inventory:
3
Let your admins use the admin command
The
/steamline command (admin panel, list, stop and remove trains) is for admins:4
Add the ticket item
The train ticket is an inventory item, so your framework has to know it. Do this once.While the item is missing, the server console says so when the resource starts, and the ticket counter gives the player his money back.
- RSG
- VORP
RCO Steamline adds the item to rsg-core’s list by itself when it starts, but Then copy
rsg-inventory only learns it after it restarts. So add it for good: open resources/[framework]/rsg-core/shared/items.lua and paste this line inside the list of items:rco-steamline/install/rco_train_ticket.png into rsg-inventory/html/images/ and restart the server. Keep unique = true: each ticket keeps its own trip.If you change
Config.Passenger.TicketItem, use the same name in the item line (RSG) and give the picture that name too.5
Start the server
The database tables (
rco_steamline_companies, rco_steamline_members, rco_steamline_fleet, rco_steamline_cars and rco_steamline_ledger) are created by themselves on the first start. You don’t need to import anything and there are no jobs to create.6
Test it
Go to the Rhodes Station office and press G to open a company. Deposit some money in its till, then buy the engine and a car from the catalogue. Walk to the Steamline booth on the platform, press J, put the car on the train and call it.
Changing things later
Every change in the files of theconfig folder needs a restart to show up.
Updating
Replace the folder with the new version. Theconfig folder is yours: keep a copy before replacing and put your values back if the new version brings a new config. Companies, members, trains, cars and statements are kept in the database and are not touched by an update.
