Ammo Item Definition¶
Ammo items represent stored ammunition inside the inventory. Use them when players should carry ammo as items instead of receiving it only through scripted loadouts or entity pickups.
Placement¶
Register ammo items in:
Use lia.item.registerItem in that shared file to define the item directly from code.
Reference¶
| Field | Type | Purpose |
|---|---|---|
name |
string |
Display name shown in the inventory. |
model |
string |
World and inventory model used by the item. |
width |
number |
Inventory width in slots. |
height |
number |
Inventory height in slots. |
ammo |
string |
Ammo type granted when the item is used. |
category |
string |
Inventory category used for sorting and grouping. |
useSound |
string |
Optional sound played when ammo is loaded. |