Player::voiceListeners

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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);
});

See Also