API Documentation
CAS Inventory Version 2 leverages the default VORP Core inventory API and exports, ensuring seamless integration with the VORP Core Framework. All client-side exports, server-side getters, events, and statebags provided by the default vorp_inventory
are fully supported and utilized by CAS Inventory Version 2.
Overview
Developers can use the standard VORP Core inventory API to interact with CAS Inventory Version 2. This includes handling item usage, inventory state changes, equipped weapon data, and more, as defined in the VORP Core Framework.
For detailed information on available exports, getters, events, and statebags, please refer to the official VORP Core API documentation at VORP Core API Reference.
Key Notes
Compatibility: CAS Inventory Version 2 does not introduce new APIs or exports but relies entirely on the existing VORP Core inventory API. This ensures compatibility with scripts designed for the default
vorp_inventory
.Custom Features: While the API remains the same, CAS Inventory Version 2 enhances the user interface with features like a unique crafting system, multilingual support, and a character injury system. These features do not require additional API calls but may influence how you handle events or statebags in your scripts.
Documentation: For a complete list of events (e.g.,
OnItemUse
,OnItemCreated
,OnItemRemoved
,OnInvStateChange
), statebags (e.g.,GetEquippedWeaponData
,IsInvActive
), and global statebags (e.g.,TimeNow
), consult the VORP Core API documentation linked above.Testing: Always test your scripts in a development environment to ensure they work seamlessly with CAS Inventory Version 2’s enhanced features.
For all API-related details and implementation examples, visit the VORP Core API Reference.
Last updated