> 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-advanced-gang/cas-advanced-gang-system.md).

# CAS Advanced Gang System

A gang and camp system for RedM. The gang lives in a camp, not in a menu.

CAS Advanced Gang System gives a gang a real place in the world. The gang claims ground, pitches a camp of real props, keeps a shared stash and a treasury, sets its own ranks, and climbs five camp tiers that take weeks of play.

Everything runs from one book: the **camp ledger**. Players open it at the ledger table in camp, or with a command from anywhere.

## Features

* **Founding in the world.** The founder writes a charter and pitches the leader's tent wherever they choose. The tent becomes the centre of the camp, and a guided run sets down the rest of the starting camp.
* **Camp structures.** An overhead placing tool with bounds, rotation and a live check of every spot. Structures are real props that every nearby player sees. Standing structures can be moved or taken down from the ledger.
* **Ranks and permissions.** Five default ranks, ten permission switches, a daily stash allowance and a daily treasury ceiling per rank. Every gang edits its own copy.
* **Shared stash.** A supply wagon with a capacity per tier, filter tabs and daily limits per rank. On VORP and RSG it stores guns one by one, keeping serial, rounds, components and condition.
* **Treasury ledger.** Every payment, withdrawal, upgrade and upkeep payment is written down with a name and a note. Draws past a rank's ceiling become requests the leader allows or refuses, and they wait through restarts.
* **Five camp tiers.** Each tier costs money and has challenges: riders, days held, money paid in, goods laid in, structures standing and contests seen off.
* **Territory.** Riders from another gang inside the camp's radius mark it as contested. Members are warned, the stores can lock, and your own scripts can read the contest.
* **Lookout Post and Alarm Bell.** A lookout warns the gang of riders coming up the trail before they reach camp ground. The bell rings out to every member and marks the camp on their map.
* **The record.** Joins, kicks, rank changes, tier raises, structures and contests are written into the camp's record, shown on the Camp tab.
* **Upkeep.** Weekly running costs per tier, carried as debt or paid for with a lost tier.
* **Four frameworks.** VORP, RSG Core and RedEM:RP, or no framework at all. The framework is found automatically.
* **Four languages.** English, German, French and Turkish. One file per language translates the server, the client and the whole interface.
* **Server authoritative.** The interface keeps no rules. The server checks every action again.

## Where to start

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Install it</strong></td><td>Requirements, install steps and the settings you can't skip.</td><td><a href="/script-documentation/cas-advanced-gang/getting-started/installation.md">Installation</a></td></tr><tr><td><strong>Configure it</strong></td><td>Every option in <code>config.lua</code>, explained.</td><td><a href="/script-documentation/cas-advanced-gang/configuration.md">Configuration</a></td></tr><tr><td><strong>Build on it</strong></td><td>Exports for your heist, war and territory scripts.</td><td><a href="/script-documentation/cas-advanced-gang/developers/exports.md">Exports</a></td></tr></tbody></table>

## Get the script

CAS Advanced Gang System is sold on the CAS Scripts store as Advanced Gang Creator: [codeaftersex.com/script/advanced-gang-creator](https://codeaftersex.com/script/advanced-gang-creator). Both the Escrow build and the full Open Source build are listed there, with a live demo of the gang creator and the camp ledger, lifetime updates and Discord support.
