# TASK::SET_SCENARIO_TYPE_ENABLED

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

## Signature

```c
void SET_SCENARIO_TYPE_ENABLED(const char* scenarioType, BOOL toggle);
```

## Parameters

- `scenarioType` (`const char*`)
- `toggle` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetScenarioTypeEnabled(scenarioType, toggle)

-- always available, by hash
Citizen.InvokeNative(0xEB47EC4E34FB7EE1, scenarioType, toggle)
```

### JavaScript

```js
SetScenarioTypeEnabled(scenarioType, toggle);

// by hash
Citizen.invokeNative('0xEB47EC4E34FB7EE1', scenarioType, toggle);
```

### C#

```csharp
Function.Call((Hash)0xEB47EC4E34FB7EE1, scenarioType, toggle);
```

## See also

- [TASK::IS_SCENARIO_TYPE_ENABLED](https://natives.borderlinerp.com/natives/TASK/IS_SCENARIO_TYPE_ENABLED.md)

*Sources: alloc8or RDR3 NativeDB.*
