Items
constItems:object
Defined in: server/api.d.ts:2404
Server-defined resource items using existing game appearances. Register types before restoring their instances.
Type Declaration
Section titled “Type Declaration”register()
Section titled “register()”register(
id,definition):string
Registers an immutable type and returns its stable GUID. Identical repeats succeed; conflicts throw. Defaults: empty description, price 0, stackable true, usable false, useLabel Use. visual names a miscellaneous item, crafting material or document appearance.
Parameters
Section titled “Parameters”string
definition
Section titled “definition”description?
Section titled “description?”string
string
price?
Section titled “price?”number
stackable?
Section titled “stackable?”boolean
usable?
Section titled “usable?”boolean
useLabel?
Section titled “useLabel?”string
visual
Section titled “visual”string
weight
Section titled “weight”number
Returns
Section titled “Returns”string