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

# CAS Advanced Inventory

CAS Advanced Inventory for RedM. A satchel built from scratch for VORP and RSG Core, a drop-in replacement for vorp\_inventory and rsg-inventory that every other script keeps using without changes.

**A satchel built from scratch for the frontier: two looks, a 3D weapon screen with parts you take off and fit, an outfit you take off piece by piece, a hotbar, stashes, ground drops, give, trade, search and crafting. It replaces vorp\_inventory or rsg-inventory and every other script on your server keeps working without a single change.**

{% hint style="success" %}
Drop-in replacement. The inventory answers every export, event and database table the stock VORP and RSG inventories use. Your players keep everything they own, nothing is migrated or converted.
{% endhint %}

## Highlights

* **Two looks, player's choice:** Outlaw Poster (a red header with a small WANTED poster carrying the rider's portrait, a painted rider with weight, hunger and thirst meters) and Minimal (the game's own ink-wash menu look, the character stays in front). Players switch with F1.
* **5 x 5 satchel** with weight, categories, search, sort, a stack lock and a 2 slot hidden pocket that is kept on death.
* **The weapon screen:** the gun's real 3D model, inspect with the game camera, condition, cleaning and unloading. **Weapon parts are items**: drag a scope onto the gun to fit it, right click it to take it off.
* **Outfit:** take off and put on 16 pieces right from the satchel (hat, coat, gloves, gunbelt, spurs and more). Works with Murphy's Clothing, cas-charcreator, vorp\_character and rsg-appearance, colours stay right.
* **Hotbar:** hold ALT and press 1 to 5. It shows at the bottom while ALT is held and stands beside the satchel while it is open.
* **Stashes from every script** open beside the satchel: saddlebags, wagons, houses, bank safe boxes, shops, clan storage, car trunks, the old syn windows.
* **Ground drops** placed by hand, props by weight, a ground card, take all and store all.
* **Give, trade and search:** give with accept or decline, a trade window with cash and two READY buttons, searching and robbing (hands up, hogtied, cuffed or down) and confiscation to an evidence locker for lawmen.
* **Hand crafting, combining two items, pouches and boxes** that hold their own items, big items carried in the arms.
* **Works with your scripts:** hunger and thirst from six metabolism scripts, Steam avatars as portraits, CAS Gunsmith parts.
* **Duplication protection** built into the core: the server owns every item, every change is one ordered transaction.
* **Six languages** (English, Turkish, German, French, Spanish, Brazilian Portuguese) and every screen fits 720p to 5K, 16:9, 21:9 and 32:9.

## At a glance

|                      |                                                                                                                                                            |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Resource folder name | `vorp_inventory` on VORP, `rsg-inventory` on RSG Core                                                                                                      |
| Frameworks           | VORP Core and RSG Core (picked automatically)                                                                                                              |
| Dependencies         | `oxmysql`, the framework core (`vorp_core` or `rsg-core` + `ox_lib`)                                                                                       |
| Database             | The stock tables of your framework, plus three small tables of its own (created on first start)                                                            |
| Config files         | `config/config.lua`, `config/config_server.lua`, `config/crafting.lua`, `config/clothing.lua`, `config/parts.lua`, `config/weapons.lua`, `config/ammo.lua` |
| Languages            | `locales/*.lua`: en, tr, de, fr, es, pt-br                                                                                                                 |
| Resolutions          | 720p to 5K, 16:9, 16:10, 21:9 and 32:9                                                                                                                     |

## Where to start

| Page                                                                                        | What it covers                                                                                                |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| [Installation](/script-documentation/cas-advanced-inventory/installation.md)                | Replace the stock inventory on VORP or RSG, item pictures, start order                                        |
| [Configuration](/script-documentation/cas-advanced-inventory/configuration.md)              | Every option, and which file to change for what                                                               |
| [Keys and commands](/script-documentation/cas-advanced-inventory/keys-and-commands.md)      | Every key and chat command on one page                                                                        |
| [Using the satchel](/script-documentation/cas-advanced-inventory/using-the-satchel.md)      | A guide you can give your players                                                                             |
| [Weapons](/script-documentation/cas-advanced-inventory/weapons.md)                          | The weapon screen, parts as items, cleaning, carry limits, CAS Gunsmith, vorp\_weaponsv2                      |
| [Stashes and other scripts](/script-documentation/cas-advanced-inventory/compatibility.md)  | Stashes, saddlebags, houses, safe boxes, trunks, hands up, metabolism, portraits, restarting                  |
| [Outfit](/script-documentation/cas-advanced-inventory/outfit.md)                            | Taking clothes off and on, the 16 pieces, Murphy's Clothing, cas-charcreator, vorp\_character, rsg-appearance |
| [Give, trade and search](/script-documentation/cas-advanced-inventory/give-trade-search.md) | Giving, the trade window, searching and robbing, lawmen and the evidence locker                               |
| [Crafting and containers](/script-documentation/cas-advanced-inventory/crafting.md)         | Hand crafting recipes, combining items, pouches and boxes                                                     |
| [Languages](/script-documentation/cas-advanced-inventory/languages.md)                      | Choosing a language and adding your own                                                                       |
| [For developers](/script-documentation/cas-advanced-inventory/developers.md)                | Exports, events, custom inventories, old syn windows, item metadata, hooks                                    |
| [Duplication protection and logs](/script-documentation/cas-advanced-inventory/security.md) | How items are kept safe, Discord logs, admin commands                                                         |
| [Troubleshooting](/script-documentation/cas-advanced-inventory/troubleshooting.md)          | Common problems and fixes                                                                                     |
| [Changelog](/script-documentation/cas-advanced-inventory/changelog.md)                      | Release notes                                                                                                 |

## Get the script

* Store: [codeaftersex.com/script/advanced-inventory](https://codeaftersex.com/script/advanced-inventory)
* Support: [discord.gg/codeaftersex](https://discord.gg/codeaftersex)
