# PED::SET_PED_RESET_FLAG

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

## Signature

```c
void SET_PED_RESET_FLAG(Ped ped, int flagId, BOOL doReset);
```

## Parameters

- `ped` (`Ped`)
- `flagId` (`int`)
- `doReset` (`BOOL`)

## Returns

`void`

## Description

Needs to be called every frame

flagid:https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedScriptResetFlags
https://github.com/femga/rdr3_discoveries/tree/master/AI/CPED_RESET_FLAGS

## Usage

### Lua

```lua
SetPedResetFlag(ped, flagId, doReset)

-- always available, by hash
Citizen.InvokeNative(0xC1E8A365BF3B29F2, ped, flagId, doReset)
```

### JavaScript

```js
SetPedResetFlag(ped, flagId, doReset);

// by hash
Citizen.invokeNative('0xC1E8A365BF3B29F2', ped, flagId, doReset);
```

### C#

```csharp
Function.Call((Hash)0xC1E8A365BF3B29F2, ped, flagId, doReset);
```

## Related enums

- [ePedScriptResetFlags](https://natives.borderlinerp.com/enums/ePedScriptResetFlags.md) — 372 values

## See also

- [PED::GET_PED_RESET_FLAG](https://natives.borderlinerp.com/natives/PED/GET_PED_RESET_FLAG.md)

*Sources: alloc8or RDR3 NativeDB.*
