# PED::_SET_PED_MELEE_FORCED_DURATION

- **Hash:** `0x6DB875AFC584FA32`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetPedMeleeForcedDuration`
- **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_MELEE_FORCED_DURATION

## Signature

```c
BOOL _SET_PED_MELEE_FORCED_DURATION(Ped ped, int durationMs);
```

## Parameters

- `ped` (`Ped`)
- `durationMs` (`int`)

## Returns

`BOOL`

## Description

If the ped has an active TASK_MELEE, force-keep it active for durationMs starting now; returns true on success (no effect if melee task not running).

## Usage

### Lua

```lua
local retval = SetPedMeleeForcedDuration(ped, durationMs)

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

### JavaScript

```js
const retval = SetPedMeleeForcedDuration(ped, durationMs);

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

### C#

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

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