Player::disableVoiceTo

From RAGE Multiplayer Wiki
Revision as of 21:24, 25 January 2019 by Kar (talk | contribs) (Created page with "{{ServerSide}} This function is used to disable voice listening to a certain player. == Syntax == <pre> player.disableVoiceTo(Player player) </pre> == Examples == This ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

See Also