NetworkClient

networkHasRosPrivilege

NETWORK_HAS_ROS_PRIVILEGE0xA699957E60D80214

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

SignatureJavaScript
networkHasRosPrivilege(index: number): boolean
SignatureLua
networkHasRosPrivilege(index: integer): boolean

Usage

JavaScript
const result = networkHasRosPrivilege(index);
Lua
local result = networkHasRosPrivilege(index)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

index is always 18 in scripts

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_HAS_ROS_PRIVILEGE(int index)
Hash
0xA699957E60D80214

Open in the interactive natives reference