# TASK::TASK_START_SCENARIO_AT_POSITION

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

## Signature

```c
void TASK_START_SCENARIO_AT_POSITION(Ped ped, Hash scenarioHash, float x, float y, float z, float heading, int duration, BOOL sittingScenario, BOOL teleport, const char* p9, float p10, BOOL p11);
```

## Parameters

- `ped` (`Ped`)
- `scenarioHash` (`Hash`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `heading` (`float`)
- `duration` (`int`)
- `sittingScenario` (`BOOL`)
- `teleport` (`BOOL`)
- `p9` (`const char*`)
- `p10` (`float`)
- `p11` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
TaskStartScenarioAtPosition(ped, scenarioHash, x, y, z, heading, duration, sittingScenario, teleport, p9, p10, p11)

-- always available, by hash
Citizen.InvokeNative(0x4D1F61FC34AF3CD1, ped, scenarioHash, x, y, z, heading, duration, sittingScenario, teleport, p9, p10, p11)
```

### JavaScript

```js
TaskStartScenarioAtPosition(ped, scenarioHash, x, y, z, heading, duration, sittingScenario, teleport, p9, p10, p11);

// by hash
Citizen.invokeNative('0x4D1F61FC34AF3CD1', ped, scenarioHash, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, duration, sittingScenario, teleport, p9, p10 + 0.0000001, p11);
```

### C#

```csharp
Function.Call((Hash)0x4D1F61FC34AF3CD1, ped, scenarioHash, x, y, z, heading, duration, sittingScenario, teleport, p9, p10, p11);
```

- 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` ``.
- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
