five-on-it / packages/protocol/src/messages / InventoryMessage
Variable: InventoryMessage
constInventoryMessage:ZodObject<{bank:ZodOptional<ZodNumber>;cash:ZodOptional<ZodNumber>;container:ZodNullable<ZodObject<{eid:ZodNumber;kind:ZodEnum<{crate:"crate";locker:"locker";pockets:"pockets";shop:"shop";trunk:"trunk"; }>;prices:ZodOptional<ZodArray<ZodNumber>>;slots:ZodArray<ZodObject<{count:ZodNumber;item:ZodNumber; },$strip>>; },$strip>>;slots:ZodArray<ZodObject<{count:ZodNumber;item:ZodNumber; },$strip>>;stored:ZodOptional<ZodArray<ZodObject<{cls:ZodNumber;paint:ZodNumber; },$strip>>>;type:ZodLiteral<"inventory">; },$strip>
Defined in: packages/protocol/src/messages.ts:978
What one player holds, sent when it changes: the inventory's slots, the container the character has open (its entity, a crate, a locker or a car's trunk, and its slots), which the client shows as a panel (pockets for a body being searched, shop for a shop's stock with each line's price; null with none open), the cars the player keeps in the garages (each one's class and paint, oldest first; none when absent), the player's Cash and their bank balance (0 when absent; the simulation's bank.ts).