The Lab
NETWORK native

NETWORK_IS_SCRIPT_ACTIVE_BY_HASH

returns BOOL4 paramsbuild 1207

Returns true if the network script identified by scriptHash is active.

Signature

C
BOOL NETWORK_IS_SCRIPT_ACTIVE_BY_HASH(Hash scriptHash, int p1, BOOL p2, int p3); // 0x1B89BC43B6E69107 b1207

Parameters

#NameType
1scriptHashHash
2p1int
3p2BOOL
4p3int

Facts

Facts about NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
Name
NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
Hash
0x1B89BC43B6E69107
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x1B89BC43B6E69107, -- NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
  GetHashKey("name"), -- Hash scriptHash
  0, -- int p1
  false, -- BOOL p2
  0 -- int p3
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x1B89BC43B6E69107", // NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
  GetHashKey("name"), // Hash scriptHash
  0, // int p1
  false, // BOOL p2
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x1B89BC43B6E69107, // NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
  (uint)API.GetHashKey("name"), // Hash scriptHash
  0, // int p1
  false, // BOOL p2
  0 // int p3
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.