RedM Natives

NETWORK_IS_SCRIPT_ACTIVE_BY_HASH

Hash0x1B89BC43B6E69107
Runtime nameNetworkIsScriptActiveByHash
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL NETWORK_IS_SCRIPT_ACTIVE_BY_HASH(Hash scriptHash, int p1, BOOL p2, int p3);

Parameters

NameTypeDescription
scriptHashHash—
p1int—
p2BOOL—
p3int—

Returns BOOL

Usage

Lua
local retval = NetworkIsScriptActiveByHash(scriptHash, p1, p2, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0x1B89BC43B6E69107, scriptHash, p1, p2, p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = NetworkIsScriptActiveByHash(scriptHash, p1, p2, p3);

// by hash
const retval = Citizen.invokeNative('0x1B89BC43B6E69107', scriptHash, p1, p2, p3, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x1B89BC43B6E69107, scriptHash, p1, p2, p3);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.