> 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-inventory-v2/api.md).

# API

CAS Inventory V2 uses the **default VORP Core inventory API and exports** — all client-side exports, server-side getters, events and statebags from the standard `vorp_inventory` are fully supported. It introduces no new APIs, so scripts written for the default inventory keep working.

Its enhancements (crafting, multilingual UI, injury system) are UI-level and need no extra API calls, though they may influence how you handle certain events or statebags.

Common events (`OnItemUse`, `OnItemCreated`, `OnItemRemoved`, `OnInvStateChange`) and statebags (`GetEquippedWeaponData`, `IsInvActive`, `TimeNow`) are documented in the official reference:

[VORP Core API Reference — Inventory](https://vorpcore.mintlify.app/api-reference/inventory)

Always test your scripts in a development environment.
