Player::disableVoiceTo
Jump to navigation
Jump to search
Server-Side
This function is used to disable voice listening to a certain player.
Syntax
player.disableVoiceTo(Player player)
Examples
This example below disables all players from hearing the player with ID '0'.
let player = mp.players.at(0);
mp.players.forEach((_player) => {
if(player == _player) return false;
player.disableVoiceTo(_player);
});