NetworkClientNot in this build

networkIsScriptActiveByHash

NETWORK_IS_SCRIPT_ACTIVE_BY_HASH0xDA7DE67F5FE5EE13

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

SignatureJavaScript
networkIsScriptActiveByHash(
  scriptHash: Hash,
  p1: number,
  p2: boolean,
  p3: number
): boolean
SignatureLua
networkIsScriptActiveByHash(
  scriptHash: Hash,
  p1: integer,
  p2: boolean,
  p3: 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 = networkIsScriptActiveByHash(scriptHash, p1, p2, p3);
Lua
local result = networkIsScriptActiveByHash(scriptHash, p1, p2, p3)

Parameters

ParameterTypeJavaScriptLua
scriptHashHashnumberinteger
p1intnumberinteger
p2BOOLbooleanboolean
p3intnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_SCRIPT_ACTIVE_BY_HASH(Hash scriptHash, int p1, BOOL p2, int p3)
Hash
0xDA7DE67F5FE5EE13
Introduced
Game build 2245 legacy numbering

Open in the interactive natives reference