> 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-housing/cas-housing.md).

# CAS Housing

CAS Housing for RedM. Buy or rent real houses of the map, furnish them in build mode with 592 Rockstar pieces, hand out keys with roles and sell your home to a friend. VORP, RSG and standalone.

**Real homes for RedM: buy or rent a house of the map, furnish it piece by piece, and share it with your friends.**

{% hint style="success" %}
CAS Housing ships with a pack of 52 ready-made homes across the map. Start the server and they are for sale. Staff make more homes right in the game, with no file editing.
{% endhint %}

## Highlights

* **52 ready-made homes**: Rockstar's own houses (Braithwaite Manor, Beecher's Hope, Shady Belle, Six Point Cabin, Watson's Cabin and many more), each with its doors, its bed and an empty inside.
* **Look before you buy**: "View inside" opens the doors for the buyer alone. Buy outright, or rent by the week.
* **Build mode**: 592 Rockstar pieces in 17 categories, each with a photo card. Pick a piece, it follows your crosshair, the wheel turns it, a click puts it down. Search, grid and angle snaps, undo.
* **Furniture that works**: sit on chairs, lie in beds, light lamps, open chests and cabinets as storage, open an armoire as your wardrobe.
* **Keys with roles**: co-owner, roommate or guest. You decide what each role may do.
* **Knock at the door**: a visitor knocks, the people inside decide who comes in.
* **Sell to a friend**: type your price, they accept, the money and the deed change hands at once.
* **A yard for every home**: fences, troughs, porch furniture, hitching posts. With CAS Stables your own horses come out at your door.
* **The law**: lawmen with a warrant can force a locked door.
* **For staff**: the property creator, "Empty inside" that clears Rockstar's furniture from a home in one click, export and import, and "Install the missing ones" for the home pack.

## At a glance

|                |                                                                                 |
| -------------- | ------------------------------------------------------------------------------- |
| Frameworks     | VORP, RSG, standalone                                                           |
| Database       | oxmysql (tables are created on the first start)                                 |
| Languages      | English, Turkish, German, French, Spanish, Portuguese (Brazil), Russian, Polish |
| Commands       | `/housingadmin` (staff), `/home` (owners and key holders)                       |
| Optional       | CAS Stables for the home stable                                                 |
| Store          | [codeaftersex.com/script/housing](https://codeaftersex.com/script/housing)      |
| For developers | server and client exports, server events, a hook for lockpick scripts           |

## Where to start

| Page                                                                                  | What is in it                                                                    |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [Installation](/script-documentation/cas-housing/installation.md)                     | Requirements, server.cfg, staff access, the first start                          |
| [Configuration](/script-documentation/cas-housing/configuration.md)                   | Every setting of `config.lua` explained                                          |
| [The home pack](/script-documentation/cas-housing/home-pack.md)                       | The 52 ready-made homes, prices, installing and removing them                    |
| [Making a home](/script-documentation/cas-housing/property-creator.md)                | The property creator step by step, Empty inside, export and import               |
| [Buying and renting](/script-documentation/cas-housing/buying-and-renting.md)         | The sale card, View inside, rent, tax, repossession                              |
| [Build mode](/script-documentation/cas-housing/build-mode.md)                         | Placing furniture, the catalogue, stored pieces, using furniture                 |
| [Your home](/script-documentation/cas-housing/your-home.md)                           | The home menu, keys and roles, knocking, the lock, the bed, storage and wardrobe |
| [Selling](/script-documentation/cas-housing/selling.md)                               | Selling to the bank, handing over, selling to a player for a price               |
| [The yard and the home stable](/script-documentation/cas-housing/yard-and-stables.md) | Outdoor building, hitching posts and wagon spots with CAS Stables                |
| [Lawmen and lockpicks](/script-documentation/cas-housing/lawmen-and-lockpicks.md)     | Warrants and how a lockpick script plugs in                                      |
| [Languages](/script-documentation/cas-housing/languages.md)                           | The 8 shipped languages and adding your own                                      |
| [For developers](/script-documentation/cas-housing/developers.md)                     | Exports, events and spawning at home                                             |
| [Troubleshooting](/script-documentation/cas-housing/troubleshooting.md)               | Common questions and fixes                                                       |
