NetworkClient

networkSetVoiceChannel

NETWORK_SET_VOICE_CHANNEL0xEF6212C2EFEF1A23

The GTA V native NETWORK_SET_VOICE_CHANNEL of the NETWORK namespace, as LS:MP client scripts call it: the global function networkSetVoiceChannel, in JavaScript and in Lua.

SignatureJavaScript
networkSetVoiceChannel(channel: number): void
SignatureLua
networkSetVoiceChannel(channel: integer)

Usage

JavaScript
networkSetVoiceChannel(channel);
Lua
networkSetVoiceChannel(channel)

Parameters

ParameterTypeJavaScriptLua
channelintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_VOICE_CHANNEL(int channel)
Hash
0xEF6212C2EFEF1A23

Open in the interactive natives reference