NetworkClientNot in this build

networkGetCommunicationGroupDefaultFlags

_NETWORK_GET_COMMUNICATION_GROUP_DEFAULT_FLAGS0x97F35B898D2D067F

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

SignatureJavaScript
networkGetCommunicationGroupDefaultFlags(communicationType: number): number
SignatureLua
networkGetCommunicationGroupDefaultFlags(communicationType: integer): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = networkGetCommunicationGroupDefaultFlags(communicationType);
Lua
local result = networkGetCommunicationGroupDefaultFlags(communicationType)

Parameters

ParameterTypeJavaScriptLua
communicationTypeintnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int _NETWORK_GET_COMMUNICATION_GROUP_DEFAULT_FLAGS(int communicationType)
Hash
0x97F35B898D2D067F
Introduced
Game build 3570 legacy numbering

Open in the interactive natives reference