# STREAMING::_REQUEST_SCENARIO_TYPE_FOR_PED

- **Hash:** `0xB223249B7798EEED`
- **Namespace:** STREAMING
- **Runtime name (Lua/JS):** `RequestScenarioTypeForPed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/STREAMING/_REQUEST_SCENARIO_TYPE_FOR_PED

## Signature

```c
Any _REQUEST_SCENARIO_TYPE_FOR_PED(Any p0, Any p1, Any p2, Any p3);
```

## Parameters

- `p0` (`Any`)
- `p1` (`Any`)
- `p2` (`Any`)
- `p3` (`Any`)

## Returns

`Any`

## Description

*Source: VORPCORE RDR3natives*

requests a scenario type just like _REQUEST_SCENARIO_TYPE but for a specifc ped p2 is a flag unknown

## Usage

### Lua

```lua
local retval = RequestScenarioTypeForPed(p0, p1, p2, p3)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB223249B7798EEED, p0, p1, p2, p3, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = RequestScenarioTypeForPed(p0, p1, p2, p3);

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0xB223249B7798EEED, p0, p1, p2, p3);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [STREAMING::_REMOVE_SCENARIO_TYPE_FOR_PED](https://natives.borderlinerp.com/natives/STREAMING/_REMOVE_SCENARIO_TYPE_FOR_PED.md) — removes the requested scenario type for ped using the id returned by `_REQUEST_SCENARIO_TYPE_FOR_PED`

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
