NetworkClient

networkHasAgeRestrictions

NETWORK_HAS_AGE_RESTRICTIONS0x1353F87E89946207

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

SignatureJavaScript
networkHasAgeRestrictions(): boolean
SignatureLua
networkHasAgeRestrictions(): boolean

Usage

JavaScript
const result = networkHasAgeRestrictions();
Lua
local result = networkHasAgeRestrictions()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_HAS_AGE_RESTRICTIONS()
Hash
0x1353F87E89946207
Formerly
_NETWORK_HAS_AGE_RESTRICTED_PROFILE

Open in the interactive natives reference