# SCRIPT::START_NEW_SCRIPT

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

## Signature

```c
int START_NEW_SCRIPT(const char* scriptName, int stackSize);
```

## Parameters

- `scriptName` (`const char*`)
- `stackSize` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = StartNewScript(scriptName, stackSize)

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

### JavaScript

```js
const retval = StartNewScript(scriptName, stackSize);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
