networkIsScriptActive
NETWORK_IS_SCRIPT_ACTIVE0x9D40DF90FAD26098The GTA V native NETWORK_IS_SCRIPT_ACTIVE of the NETWORK namespace, as LS:MP client scripts call it: the global function networkIsScriptActive, in JavaScript and in Lua.
networkIsScriptActive(
scriptName: string,
instance_id: number,
p2: boolean,
position_hash: number
): booleannetworkIsScriptActive(
scriptName: string,
instance_id: integer,
p2: boolean,
position_hash: integer
): booleanUsage
JavaScript
const result = networkIsScriptActive(scriptName, instance_id, p2, position_hash);Lua
local result = networkIsScriptActive(scriptName, instance_id, p2, position_hash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptName | string | string | string |
instance_id | int | number | integer |
p2 | BOOL | boolean | boolean |
position_hash | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Network NETWORK
- In the game
BOOL NETWORK_IS_SCRIPT_ACTIVE(const char* scriptName, int instance_id, BOOL p2, int position_hash)- Hash
0x9D40DF90FAD26098