InventoryItem
Defined in: server/api.d.ts:625
A stack in a player’s inventory, as the server’s record holds it.
Properties
Section titled “Properties”condition
Section titled “condition”condition:
number
Defined in: server/api.d.ts:639
The stack’s condition in percent of full, 0 to 100: the charge a fusion core has left. 100 for an item that has none.
count:
number
Defined in: server/api.d.ts:634
How many the player carries.
form:
number
Defined in: server/api.d.ts:629
The base object’s form ID.
mods:
number[]
Defined in: server/api.d.ts:644
The OMOD form IDs attached to the stack, in the order it keeps them; empty for an item that takes none, or that the game gives its default ones.
name:
string|null
Defined in: server/api.d.ts:649
The name the stack shows in place of its base object’s, as setItemName or a workbench gave it; null for none. Not the name its mods make up, such as “Long Pipe Pistol”.