NetworkClientNot in this build

networkDoesCommunicationGroupHavePermission

_NETWORK_DOES_COMMUNICATION_GROUP_HAVE_PERMISSION0xDBDF80673BBA3D65

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

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

Parameters

ParameterTypeJavaScriptLuaDescription
communicationTypeintnumberinteger0 = VOICE; 1 = TEXT_CHAT; 2 = TEXT_MESSAGE; 3 = EMAIL; 4 = USER_CONTENT; 5 = USER_TEXT

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL _NETWORK_DOES_COMMUNICATION_GROUP_HAVE_PERMISSION(int communicationType)
Hash
0xDBDF80673BBA3D65
Introduced
Game build 3095 legacy numbering
Formerly
_NETWORK_DOES_COMMUNICATION_GROUP_EXIST

Open in the interactive natives reference