# SCRIPT::DOES_SCRIPT_WITH_NAME_HASH_EXIST

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

## Signature

```c
BOOL DOES_SCRIPT_WITH_NAME_HASH_EXIST(Hash scriptHash);
```

## Parameters

- `scriptHash` (`Hash`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = DoesScriptWithNameHashExist(scriptHash)

-- always available, by hash
local retval = Citizen.InvokeNative(0xA34E89749F628284, scriptHash, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DoesScriptWithNameHashExist(scriptHash);

// by hash
const retval = Citizen.invokeNative('0xA34E89749F628284', scriptHash, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xA34E89749F628284, scriptHash);
```

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