> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-redm-cars/cas-redm-cars.md).

# CAS RedM Cars

All in one RedM cars for VORP. 20 custom car models from 1905 to 1920 with a car system, dealership, garage, fuel pumps, licence plates and engine repair.

**All in one RedM cars: twenty custom car models from 1905 to 1920 and the complete car system around them. Buy them at a dealership, keep them in a garage, fill them at a fuel pump, repair them by the roadside and drive them with a vintage speedometer.**

{% hint style="success" %}
Every car is fully custom built: its own model, doors, hood, top, lamps, engine sound, horn, gears, top speed and fuel tank. Engine health, fuel, odometer, paint and licence plates stay with the car, through the garage and across restarts.
{% endhint %}

## Highlights

* **20 drivable cars** from 1905 to 1920: runabouts, tourers, a limousine, a boattail, a taxicab, a delivery van, a stake truck, a fire brigade car, a funeral car and more.
* **Working parts**:
  * doors, butterfly hoods, trunk lids and tailgates;
  * folding windshields and folding tops;
  * sliding windows, curtains, a taxi flag and a bell;
  * head, side and tail lamps.
* **A real engine**:
  * the starter or a hand crank;
  * damage from collisions;
  * smoke, steam, backfires and stalling;
  * fuel burned while driving.
* **Custom animations**: getting in and out, sitting, hands on the turning steering wheel, the pedals and the horn bulb.
* **Dealership**:
  * browse and configure: paint finishes, extras and licence plates;
  * test drive;
  * buy with cash or gold, or finance;
  * trade in, reputation tiers, stock per dealership.
* **Garages**:
  * take cars out and put them away, also straight from the driver seat;
  * recover lost or wrecked cars for a fee;
  * staff impound.
* **Vintage fuel pumps**: curb, visible, cabinet and barrel pumps with mechanical gallon and dollar counters, a hose and nozzle, filler caps and a pump crank or lever.
* **Field engine repair**: a Repair Kit, the hood opened, tools in hand and a skill check per stage.
* **Vehicle HUD**: an analog speedometer with revs and gear, engine, fuel and body meters, warning lamps and an odometer.
* **Production ready**:
  * every player-visible text in locale files;
  * server-authoritative checks;
  * staff-only debug tools;
  * rebindable keys.

## At a glance

|              |                                                                                                                                 |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------- |
| Framework    | VORP Core. The dealership, garage, fuel and repair scripts also carry an RSG Core bridge                                        |
| Database     | oxmysql. Tables are created on first start                                                                                      |
| Resources    | 8: `cas-car1910`, `cas-carpack`, `cas-carplates`, `cas-fuel`, `cas-dealership`, `cas-garage`, `cas-vehiclehud`, `cas-carrepair` |
| Cars         | 20 add-on vehicles, no game files replaced                                                                                      |
| Languages    | English ships. Every text is in locale files                                                                                    |
| Staff access | ACE permissions (the `command` ACE, which `group.admin` has)                                                                    |

## Where to start

| Page                                                                        | What it covers                                                                 |
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [Installation](/script-documentation/cas-redm-cars/installation.md)         | Requirements, start order, database, the Repair Kit item, first checks         |
| [The Cars](/script-documentation/cas-redm-cars/cars.md)                     | The twenty cars, their parts, paint and licence plates                         |
| [Driving](/script-documentation/cas-redm-cars/driving.md)                   | Keys, starting the engine, the hand crank, damage, fuel, righting a tipped car |
| [Dealership](/script-documentation/cas-redm-cars/dealership.md)             | Browsing, test drives, buying, finance, trade-ins, stock and its settings      |
| [Garage](/script-documentation/cas-redm-cars/garage.md)                     | Taking cars out and putting them away, recovery, impound and adding garages    |
| [Fuel Pumps](/script-documentation/cas-redm-cars/fuel.md)                   | Filling a car, pump types, prices and adding pumps                             |
| [Engine Repair](/script-documentation/cas-redm-cars/repair.md)              | The Repair Kit, the repair stages and the skill check                          |
| [Vehicle HUD](/script-documentation/cas-redm-cars/hud.md)                   | The speedometer and its settings                                               |
| [Commands and Permissions](/script-documentation/cas-redm-cars/commands.md) | Every command, who can use it and how to grant it                              |
| [Localization](/script-documentation/cas-redm-cars/localization.md)         | Translating the scripts                                                        |
| [Developers](/script-documentation/cas-redm-cars/developers.md)             | Exports and events for other scripts                                           |
| [Troubleshooting](/script-documentation/cas-redm-cars/troubleshooting.md)   | Common problems and their fixes                                                |

## More CAS scripts

Browse every CAS RedM script, with prices and both builds side by side, at [codeaftersex.com/scripts](https://codeaftersex.com/scripts).
