Creating a Custom Item
This guide explains how to create your own usable items and configure their behavior.
1. Create a new item
Every usable item must be registered inside Config.Items.
The table key must match the item name registered in your inventory.
['my_item'] = {
}2. Choose an Item Type
The type option defines the item category used by VMS Needs and other configurable systems, such as item accidents.
type = 'drink',VMS Needs includes several default types, such as food, drink, glass, drug, cig, cigarette_pack, breathalyzer, and drugtest.
These values are not restricted - you can create your own item types when implementing custom behavior.
3. Choose a Behavior (optional)
The behavior option assigns custom interaction logic to the item.
Simple items such as standard food and drinks usually do not require a behavior. Advanced items, including cigarettes, powder drugs, syringes, breathalyzers, and drug tests, use behavior files to control their interaction flow.
Built-in behaviors are located in: shared/behaviors/
Behavior files are open and can be modified or used as templates for completely custom item interactions. The selected behavior determines which model, attachment, animation, and particle keys are required.
4. Configure the Item Properties
5. Behavior-Specific Properties
6. Complete Example
Last updated