# PED::IS_PED_USING_SCENARIO_HASH

- **Hash:** `0x34D6AC1157C8226C`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsPedUsingScenarioHash`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_PED_USING_SCENARIO_HASH

## Signature

```c
BOOL IS_PED_USING_SCENARIO_HASH(Ped ped, Hash scenarioHash);
```

## Parameters

- `ped` (`Ped`)
- `scenarioHash` (`Hash`)

## Returns

`BOOL`

## Description

Equivalent to IS_PED_USING_SCENARIO from V but takes a hash instead of a string.

## Usage

### Lua

```lua
local retval = IsPedUsingScenarioHash(ped, scenarioHash)

-- always available, by hash
local retval = Citizen.InvokeNative(0x34D6AC1157C8226C, ped, scenarioHash, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPedUsingScenarioHash(ped, scenarioHash);

// by hash
const retval = Citizen.invokeNative('0x34D6AC1157C8226C', ped, scenarioHash, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x34D6AC1157C8226C, ped, scenarioHash);
```

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

*Sources: alloc8or RDR3 NativeDB.*
