# NETWORK::NETWORK_IS_SCRIPT_ACTIVE_BY_HASH

- **Hash:** `0x1B89BC43B6E69107`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `NetworkIsScriptActiveByHash`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/NETWORK_IS_SCRIPT_ACTIVE_BY_HASH

## Signature

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

## Parameters

- `scriptHash` (`Hash`)
- `p1` (`int`)
- `p2` (`BOOL`)
- `p3` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = NetworkIsScriptActiveByHash(scriptHash, p1, p2, p3)

-- always available, by hash
local retval = Citizen.InvokeNative(0x1B89BC43B6E69107, scriptHash, p1, p2, p3, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = NetworkIsScriptActiveByHash(scriptHash, p1, p2, p3);

// by hash
const retval = Citizen.invokeNative('0x1B89BC43B6E69107', scriptHash, p1, p2, p3, Citizen.returnResultAnyway());
```

### C#

```csharp
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.*
