# PED::_SET_SCENARIO_PED_VOLUME_REFERENCE

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

## Signature

```c
void _SET_SCENARIO_PED_VOLUME_REFERENCE(Volume volume);
```

## Parameters

- `volume` (`Volume`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Registers the given volume with ped/scenario systems (stores a global ref). Used by SP scripts to keep a volume alive; calling again replaces the previous ref.

*Source: VORPCORE RDR3natives*

Only used in SP R* Script loanshark_hunter

## Usage

### Lua

```lua
SetScenarioPedVolumeReference(volume)

-- always available, by hash
Citizen.InvokeNative(0x9E3842E5DAD69F80, volume)
```

### JavaScript

```js
SetScenarioPedVolumeReference(volume);

// by hash
Citizen.invokeNative('0x9E3842E5DAD69F80', volume);
```

### C#

```csharp
Function.Call((Hash)0x9E3842E5DAD69F80, volume);
```

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