NETWORK_IS_SCRIPT_ACTIVE_BY_HASH
Hash
0x1B89BC43B6E69107Runtime name
NetworkIsScriptActiveByHashNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL NETWORK_IS_SCRIPT_ACTIVE_BY_HASH(Hash scriptHash, int p1, BOOL p2, int p3);Parameters
| Name | Type | Description |
|---|---|---|
scriptHash | Hash | — |
p1 | int | — |
p2 | BOOL | — |
p3 | int | — |
Returns BOOL
Usage
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#
const retval = NetworkIsScriptActiveByHash(scriptHash, p1, p2, p3);
// by hash
const retval = Citizen.invokeNative('0x1B89BC43B6E69107', scriptHash, p1, p2, p3, Citizen.returnResultAnyway());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.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.