NetworkClientNot in this build

networkDoesCommunicationGroupHaveSettingsEnabled

_NETWORK_DOES_COMMUNICATION_GROUP_HAVE_SETTINGS_ENABLED0x20C12650830A64EC

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

SignatureJavaScript
networkDoesCommunicationGroupHaveSettingsEnabled(
  communicationType: number
): boolean
SignatureLua
networkDoesCommunicationGroupHaveSettingsEnabled(
  communicationType: integer
): boolean
⚠
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 = networkDoesCommunicationGroupHaveSettingsEnabled(communicationType);
Lua
local result = networkDoesCommunicationGroupHaveSettingsEnabled(communicationType)

Parameters

ParameterTypeJavaScriptLua
communicationTypeintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL _NETWORK_DOES_COMMUNICATION_GROUP_HAVE_SETTINGS_ENABLED(int communicationType)
Hash
0x20C12650830A64EC
Introduced
Game build 3570 legacy numbering

Open in the interactive natives reference