networkIsScriptActiveByHash
NETWORK_IS_SCRIPT_ACTIVE_BY_HASH0xDA7DE67F5FE5EE13The 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.
networkIsScriptActiveByHash(
scriptHash: Hash,
p1: number,
p2: boolean,
p3: number
): booleannetworkIsScriptActiveByHash(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptHash | Hash | number | integer |
p1 | int | number | integer |
p2 | BOOL | boolean | boolean |
p3 | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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