Skip to main content

Player::voiceListeners

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

This property is used to return all active voice listeners as array, which got added by player.enableVoiceTo(target).

Example #1​

This example will remove all active listeners from the player list.

Server-Side

player.voiceListeners.forEach((listener) => {
player.disableVoiceTo(listener);
});