networkHasRosPrivilege
NETWORK_HAS_ROS_PRIVILEGE0xA699957E60D80214The 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.
networkHasRosPrivilege(index: number): booleannetworkHasRosPrivilege(index: integer): booleanUsage
JavaScript
const result = networkHasRosPrivilege(index);Lua
local result = networkHasRosPrivilege(index)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
index | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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