networkDoesCommunicationGroupHavePermission
_NETWORK_DOES_COMMUNICATION_GROUP_HAVE_PERMISSION0xDBDF80673BBA3D65The 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.
networkDoesCommunicationGroupHavePermission(
communicationType: number
): booleannetworkDoesCommunicationGroupHavePermission(
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
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
communicationType | int | number | integer | 0 = VOICE; 1 = TEXT_CHAT; 2 = TEXT_MESSAGE; 3 = EMAIL; 4 = USER_CONTENT; 5 = USER_TEXT |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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