Skip to content

five-on-it / packages/protocol/src/messages / KeysMessage

Variable: KeysMessage ​

const KeysMessage: ZodObject<{ keys: ZodArray<ZodObject<{ eid: ZodNumber; key: ZodString; }, $strip>>; type: ZodLiteral<"keys">; }, $strip>

Defined in: packages/protocol/src/messages.ts:928

The tags the keys of the room's cars answer to (the simulation's SimWorld.locks of every vehicle that has one), by entity, sent to every player when they change: what the client's interaction prompt needs to tell a car its player carries the key of (Unlock) from one they would have to pick (Locked).