# STREAMING::_REQUEST_SCENARIO_TYPE

- **Hash:** `0x19A6BE7D9C6884D3`
- **Namespace:** STREAMING
- **Runtime name (Lua/JS):** `RequestScenarioType`
- **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

## Signature

```c
int _REQUEST_SCENARIO_TYPE(Hash scenarioType, int p1, Hash entityModel, Hash conditionalAnim);
```

## Parameters

- `scenarioType` (`Hash`)
- `p1` (`int`)
- `entityModel` (`Hash`)
- `conditionalAnim` (`Hash`)

## Returns

`int`

## Description

*Source: alloc8or RDR3 NativeDB*

entityModel can be 0 or using Hash or using GET_ENTITY_MODEL
conditionalAnim can be 0 or using Hash also accepts GET_ACTIVE_DYNAMIC_SCENARIO.

*Source: VORPCORE RDR3natives*

p1 seems to be some kind of flag? p2 can be 0 or entity model accepts hash joaat("a_c_bear_01") or with GetEntityModel(entity) p3 can be 0 or pass the conditional anim or using _GET_ACTIVE_DYNAMIC_SCENARIO

## Usage

### Lua

```lua
local retval = RequestScenarioType(scenarioType, p1, entityModel, conditionalAnim)

-- always available, by hash
local retval = Citizen.InvokeNative(0x19A6BE7D9C6884D3, scenarioType, p1, entityModel, conditionalAnim, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = RequestScenarioType(scenarioType, p1, entityModel, conditionalAnim);

// by hash
const retval = Citizen.invokeNative('0x19A6BE7D9C6884D3', scenarioType, p1, entityModel, conditionalAnim, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x19A6BE7D9C6884D3, scenarioType, p1, entityModel, conditionalAnim);
```

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

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
