Library referenceTypes
AppItem
type AppItem = {
count: number;
instance_id?: number;
kounter?: AppKounter;
locked?: boolean;
nametag?: string;
paint?: string;
paint_shader?: number;
pattern_seed?: number;
serial?: number;
skin_index: number;
stackable: boolean;
style?: number;
wear?: number;
wear_tier?: AppWearTier;
};one copy or one stack, as the inventory, trades and listings show it; names, images and rarities are in /data/skins by skin_index
Properties
| Property | Type | Description |
|---|---|---|
count | number | - |
instance_id? | number | the copy's global id; a stackable item has none and is addressed by skin_index and count |
kounter? | AppKounter | - |
locked? | boolean | inventory only: the player locked this copy or stack in game, apps can't use it |
nametag? | string | - |
paint? | string | hex colour |
paint_shader? | number | the paint shader id, instead of paint |
pattern_seed? | number | 0 to 999999 |
serial? | number | the mint number |
skin_index | number | the catalog item |
stackable | boolean | - |
style? | number | - |
wear? | number | 0 is best |
wear_tier? | AppWearTier | - |