> 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-vintage-aircraft/installation.md).

# Installation

Install CAS Vintage Aircraft on a VORP or RSG RedM server and set up the dealer, the hangar keeper and the airfield in game.

## Requirements

* A RedM server with **OneSync** on
* **oxmysql**
* **VORP Core** or **RSG Core**

## Steps

1. If an older aircraft pack is on the server, delete it first. Do not run the two side by side.
2. Download the script from your Cfx.re Keymaster and put the `[vintage_aircraft]` folder in your server's `resources` folder.
3. Add these lines to `server.cfg`, after oxmysql and your framework:

```
ensure vintage_aircraft_art
ensure vintage_aircraft_core
ensure vintage_aircraft_audio
ensure vintage_aircraft_hangar

add_ace group.admin command.aircraft allow
add_ace group.admin command.aircrafthangar allow
add_ace group.admin aircraft.admin allow
```

4. Restart the server. The database tables `va_hangar_owned` and `va_hangar_sites` are created on their own.

## Set up the dealer

In game, as admin, stand on the spot, face the way you want, then type:

| Command                    | Places                                                 |
| -------------------------- | ------------------------------------------------------ |
| `/aircrafthangar place`    | the dealer (Frontier Aero Co.)                         |
| `/aircrafthangar keeper`   | the hangar keeper                                      |
| `/aircrafthangar spot`     | the field, where bought aircraft are rolled out        |
| `/aircrafthangar showroom` | the showroom floor, where the showroom aircraft stands |

`/aircrafthangar status` shows what is set, and `/aircrafthangar clear` removes all four.

{% hint style="info" %}
Pick a long, flat, open field for the `spot`. The Fleche d'Or needs the longest run to leave the ground.
{% endhint %}
