The Lab
NETWORK native

NETWORK_IS_SCRIPT_ACTIVE

returns BOOL4 paramsbuild 1207

Returns true if the named network script is active.

Signature

C
BOOL NETWORK_IS_SCRIPT_ACTIVE(const char* scriptName, int p1, BOOL p2, int p3); // 0x9D40DF90FAD26098 b1207

Parameters

#NameType
1scriptNameconst char*
2p1int
3p2BOOL
4p3int

Facts

Facts about NETWORK_IS_SCRIPT_ACTIVE
Name
NETWORK_IS_SCRIPT_ACTIVE
Hash
0x9D40DF90FAD26098
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(0x9D40DF90FAD26098, -- NETWORK_IS_SCRIPT_ACTIVE
  "text", -- const char* scriptName
  0, -- int p1
  false, -- BOOL p2
  0 -- int p3
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x9D40DF90FAD26098", // NETWORK_IS_SCRIPT_ACTIVE
  "text", // const char* scriptName
  0, // int p1
  false, // BOOL p2
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x9D40DF90FAD26098, // NETWORK_IS_SCRIPT_ACTIVE
  "text", // const char* scriptName
  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.