Skip to content

Shared types API

@vimp-mp/types 2.0.1

Vectors, weapons, voice routes, permissions, and payloads shared across runtimes.

DeclarationDescription
PlayerIdServer-assigned numeric identifier for a connected player.
Vec2Two-dimensional vector used for screen positions and planar coordinates.
Vec3Three-dimensional vector used for world positions, rotations and scales.
VoiceChannelChangePayloadDescribes a player's transition between active voice channels.
VoiceChannelInfoVoice-channel state and permissions announced to a client.
VoicePermissionsPer-player speaking and listening permissions inside a voice channel.
VoiceRouteRoute over which a voice transmission is delivered.
VoiceStartPayloadIdentifies a player and route when voice transmission begins.
VoiceStopPayloadIdentifies a player and route when voice transmission ends.
WeaponWeapon hash and ammunition count stored in an entity snapshot.

VIMP developer documentation