# PED::_SET_PED_IMMERSION_FLAG

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

## Signature

```c
void _SET_PED_IMMERSION_FLAG(Ped ped, BOOL toggle);
```

## Parameters

- `ped` (`Ped`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Only used in R* Script beat_sharp_shooter
Blocks ped from swimming underwater

## Usage

### Lua

```lua
SetPedImmersionFlag(ped, toggle)

-- always available, by hash
Citizen.InvokeNative(0x7FB0088E8769CDDB, ped, toggle)
```

### JavaScript

```js
SetPedImmersionFlag(ped, toggle);

// by hash
Citizen.invokeNative('0x7FB0088E8769CDDB', ped, toggle);
```

### C#

```csharp
Function.Call((Hash)0x7FB0088E8769CDDB, ped, toggle);
```

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