Player::enableVoiceTo

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Server-Side

This function is used to enable voice listening to a certain player.

Syntax

player.enableVoiceTo(Player player)

Examples

This example below shows how all players can hear the player with ID "0".

let player = mp.players.at(0);

mp.players.forEach((_player) => {
        if(player == _player) return false;
        
        player.enableVoiceTo(_player);
});

See Also