# SCRIPT::START_NEW_SCRIPT_WITH_NAME_HASH

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

## Signature

```c
int START_NEW_SCRIPT_WITH_NAME_HASH(Hash scriptHash, int stackSize);
```

## Parameters

- `scriptHash` (`Hash`)
- `stackSize` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = StartNewScriptWithNameHash(scriptHash, stackSize)

-- always available, by hash
local retval = Citizen.InvokeNative(0xEB1C67C3A5333A92, scriptHash, stackSize, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = StartNewScriptWithNameHash(scriptHash, stackSize);

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0xEB1C67C3A5333A92, scriptHash, stackSize);
```

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