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

# Changelog

Release notes for CAS Advanced Inventory for RedM.

## 1.0.2

* **Fixed: guns reloading over and over.** When one ammo type in a gun report did not match the satchel (rounds another script gave straight to the ped, for example), the whole report was refused and every gun went back to its saved clip. Guns that came over from a VORP database are saved empty, so each one went to zero, reloaded from the gunbelt, and the next report did the same again. Now only that ammo type goes back to what the satchel holds (none when it holds none), and the other guns are left as they are. The server console names the rider and the ammo type when it happens.
* Fixed: two guns of the same model (dual wield) had their one clip counted twice, which could start the same loop.
* Fixed: three ammo names the game does not know. The Varmint rifle fires `AMMO_22` and `AMMO_22_TRANQUILIZER`, and explosive slugs are `AMMO_SHOTGUN_SLUG_EXPLOSIVE`. Ammo items from other scripts for these now load, and their rounds are no longer dropped from the gunbelt. Ammo saved under the old names is read under the new ones. The volatile dynamite and fire bottle types and the hatchets are in the gunbelt too, as in VORP.
* jo\_libs: scripts built on jo\_libs find the inventory again (they read `vorp_github` from the manifest and said "No compatible inventory found on your server").
* xakra\_weapons: every equip is announced to it (`syn_weapons:weaponused`, as stock VORP does), so it puts its parts and the gun's condition on. New export `setWeaponComponents` for its parts menu, see [Stashes and other scripts](/script-documentation/cas-advanced-inventory/compatibility.md#xakra_weapons).
* `config/ammo.lua` also has VORP's own `SHARED_DATA.MAX_AMMO`, `AMMO_TYPES` and `AMMO_TYPE_HASH` tables, for scripts that read that file.

Replace the whole resource, including `config/ammo.lua` (if you changed it, take the new file and copy your numbers over), then restart the server.

## 1.0.1

* Outfit: works with Murphy's Clothing (murphy\_clothing). Pieces come off and go on through Murphy's own category toggle, so its clothing menu, shops and wardrobe stay in step. `'auto'` picks it first when it runs.

## 1.0.0

First release.

* Two looks, Outlaw Poster and Minimal (the game's own ink-wash menu look), chosen by each player.
* 5 x 5 satchel with categories, search, sort, stack lock and a 2 slot pocket kept on death.
* Outfit: 16 pieces taken off and put on from the satchel, with cas-charcreator, vorp\_character, rsg-appearance or the native mode.
* Hotbar on ALT + 1 to 5, at the bottom while ALT is held and beside the satchel while it is open.
* Ground drops placed by hand, props by weight, guns as their own model, a ground card with take all and store all.
* Give with accept or decline, a trade window with cash, searching and robbing, confiscation to an evidence locker.
* Money and gold from the header: give to a rider nearby or drop a bundle on the ground.
* The gunbelt in the satchel: rounds per ammo type, and the rounds for the hovered weapon.
* The weapon screen (VORP): the gun's real 3D model, inspect with the game camera, condition, cleaning with gun oil, unloading, serial and history.
* Weapon parts as items: fit them by dragging, take them off with a right click, live stats while dragging, factory parts kept, refused parts never offered. Exports for gunsmith benches (VORP and RSG), works with CAS Gunsmith.
* Stashes from other scripts on the right of the satchel: store all, take all, access, last changes, five rows that scroll. Car trunks for CAS Motor Cars.
* Hunger and thirst meters for CAS Metabolism, BLN HUD, Outsider Needs, VORP Metabolism, bcc-corehud and RSG Core.
* Steam avatars as rider portraits, or your own picture service.
* Hand crafting, combining items, pouches and boxes, carrying big items in the arms.
* `/trade`, `/search` and `/craft`, plus client events for radial menus.
* Every VORP and RSG inventory export, event and table, including the old API object and the old syn windows.
* Duplication protection, rate limits, Discord logs and `/invadmin`.
* English, Turkish, German, French, Spanish and Brazilian Portuguese.
* Movable panels that always stay on the screen, interface size, every resolution from 720p to 5K and ultrawide.
