Перейти к содержанию

Player::voiceListeners

Материал из RAGE MP Wiki Archive
Версия от 13:55, 26 октября 2018; imported>Splak
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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