Shared types API
@vimp-mp/types 2.0.1Vectors, weapons, voice routes, permissions, and payloads shared across runtimes.
| Declaration | Description |
|---|---|
| PlayerId | Server-assigned numeric identifier for a connected player. |
| Vec2 | Two-dimensional vector used for screen positions and planar coordinates. |
| Vec3 | Three-dimensional vector used for world positions, rotations and scales. |
| VoiceChannelChangePayload | Describes a player's transition between active voice channels. |
| VoiceChannelInfo | Voice-channel state and permissions announced to a client. |
| VoicePermissions | Per-player speaking and listening permissions inside a voice channel. |
| VoiceRoute | Route over which a voice transmission is delivered. |
| VoiceStartPayload | Identifies a player and route when voice transmission begins. |
| VoiceStopPayload | Identifies a player and route when voice transmission ends. |
| Weapon | Weapon hash and ammunition count stored in an entity snapshot. |