Skip to main content
All settings live in one file: rco-vehicles/config/config.lua. Open it with any text editor (Notepad works, VS Code is nicer).
Only change what comes after the = sign. Keep the quotes '...', the commas and the brackets exactly as they are. After saving, restart the server.

The basics

Another language

Copy locales/en.json, translate the texts on the right side of each line, save it as for example locales/es.json and set Config.Locale = 'es'. Anything you didn’t translate shows in English.

Money and limits

Prices

Every RCO vehicle already has its own price. You only touch this list to change a price:
The vehicle’s name is the name of the model (the Wanderer bicycle is wanderer). A vehicle that is not in this list keeps its own price.

Keys and distances

Keys are written as the game’s control hashes (like 0xF3830D8E), not as letters: the hash of each key is on the Keys page. The store key and the lock key have to be keys the game reads in a vehicle: J, for example, does not work in a vehicle.

Locking cars

Players lock and unlock their own cars with the lock key (Config.LockKey, L by default), next to the car or inside it. Only cars lock: motorcycles, bicycles and aircraft don’t. The prompt next to the car shows the key you set. After changing it, restart the server: the car resources read it when they start. A locked car lets nobody in (other players see Locked instead of the seat prompt), and whoever is inside can still get out. The lock is not saved: a car always comes out of the garage unlocked.

Tow and keys (chat commands)

Only the owner tows his vehicles. A vehicle with somebody on it stays where it is. At his car (inside it or beside it) the owner types /givekey <player id> [hours], and that player can lock and unlock the car too. /givekey <player id> 0 takes the key back. Selling or giving the car away takes every key back, and keys are forgotten when the server restarts.

Trunks

Cars with a trunk (Ironhorse, Mule and Prairie) show Open the trunk to a player on foot behind them, with the car stopped. The player lifts the lid and the trunk’s inventory opens; on the Ironhorse and the Mule the lid opens too, for everyone near. A locked car keeps its trunk shut. What is in a trunk stays with that vehicle, out or in the garage, also after a restart. Config.Trunks sets how much fits in each car’s trunk: slots (how many items) and weight (in kg; RSG counts it, VORP counts the items only). A car left out of the list keeps the size its own resource gives it.

Garages

Each garage is a block like this:
Pick a spawn spot with about 6 metres of free space around it and nothing low overhead: the garage menu shows the vehicle there with the camera going around it.
Every vehicle remembers the short name of its garage. If you rename valentine to something else, the vehicles kept there are lost from it. To add a garage, add a new block with a new short name instead.
It comes with seven garages: Saint Denis, Rhodes, Valentine, Annesburg, Blackwater, Strawberry and Armadillo.

Dealers

Dealers work like garages, with a few more lines: Heights are fixed to the ground by the script, so a z that is a metre off is fine. The exception is the Saint Denis dealer: its preview must stay exact, because it is the top of the platform.

Placing dealers and garages

The easy way to get the numbers for a new spot:
1

Turn on help mode

Set Config.Debug = true and restart the server.
2

Stand on the spot

Go in the game to where the garage (or the vehicle) should be, facing the direction you want.
3

Copy your position

Type /vehicles_here in the chat, open the F8 console and copy the line it shows into the config.
4

Turn help mode off

Set Config.Debug = false again before opening the server to players.

Fuel

Cars and motorcycles burn petrol as they drive; bicycles never do. A new vehicle comes with a full tank, and a vehicle keeps its fuel when it is put away. At the pump, players Take the hose. At their vehicle, Refuel opens a ticket where they choose how much to buy; they pay before it fills, and Stop gives back what did not go in. One player per pump at a time, and walking further than the hose reaches puts it back. Leave nozzle, nozzleBone and nozzleOffset as they are when you use our pump: they place the nozzle in the player’s hand.

Fuel stations

Each station is one line:
It comes with five stations: Saint Denis, Rhodes, Emerald Ranch, Blackwater and Armadillo. To add one, stand where the player should stand, face where the pump should be, and take the numbers with /vehicles_here (see Placing dealers and garages).

Repair kit and vehicle damage

Vehicles keep their damage: one put away smoking comes out smoking, also after a restart or when it was lost. A destroyed vehicle comes back from the garage badly damaged. The player uses the kit from the inventory next to the vehicle and kneels to work on it with a wrench. The kit leaves the inventory when it is used and comes back if the repair does not finish (he walks away, dies or gets on a vehicle). A destroyed vehicle can’t be repaired with a kit.

Chamois cloth

The player uses the cloth from the inventory next to any vehicle and wipes it. The vehicle is clean at once and doesn’t get dirty for Config.Clean.Minutes; another cloth starts the time again. Like the repair kit, the cloth comes back if the cleaning does not finish.

Jerry can

An empty can is used on foot at a fuel pump whose hose is free: the player takes the pump’s nozzle and fills the can, and pays the litres it takes at Config.Fuel.price. A full can is used next to a vehicle that is out with a tank that is not full (anyone’s): he walks to its filler and pours it; what fits goes in. With Metadata = true a can that is part full is topped up at a pump and poured anywhere else, and what the tank did not take stays in the can. With false the can comes back empty after pouring. Nothing is taken or paid if he stops halfway. With Config.Fuel.enabled = false the jerry can does nothing.