VoiceManager
@vimp-mp/types 2.0.1Exposes local voice state, channels, and per-player playback controls.
ts
interface VoiceManagerMembers
activeChannelId
ts
readonly activeChannelId: number | nullSelected voice channel ID, or null.
channels
ts
readonly channels: Array<VoiceChannelInfo>Voice channels announced by the server.
enabled
ts
readonly enabled: booleanWhether voice is currently enabled.
inputLevel
ts
readonly inputLevel: numberCurrent microphone input level.
isTalking
ts
readonly isTalking: booleanWhether the local player is transmitting voice audio.
state
ts
readonly state: VoiceStateCurrent voice subsystem snapshot.
getPlayerVolume
ts
getPlayerVolume(player: number | Player): numberReturns the remote player's local playback multiplier.
isPlayerMuted
ts
isPlayerMuted(player: number | Player): booleanReports whether the remote player is muted by this client.
selectChannel
ts
selectChannel(id: number | null): voidSelects a voice channel, or clears the selection with null.
setPlayerMuted
ts
setPlayerMuted(player: number | Player, muted: boolean): voidApplies or removes a client-local playback mute for a remote player.
setPlayerVolume
ts
setPlayerVolume(player: number | Player, volume: number): booleanSets a remote player's local playback multiplier in the 0–2 range.