RedM Natives

_SET_PED_MELEE_FORCED_DURATION

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

Hash0x6DB875AFC584FA32
Runtime nameSetPedMeleeForcedDuration
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _SET_PED_MELEE_FORCED_DURATION(Ped ped, int durationMs);

Parameters

NameTypeDescription
pedPed—
durationMsint—

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
local retval = SetPedMeleeForcedDuration(ped, durationMs)

-- always works, by hash
local retval = Citizen.InvokeNative(0x6DB875AFC584FA32, ped, durationMs, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SetPedMeleeForcedDuration(ped, durationMs);

// by hash
const retval = Citizen.invokeNative('0x6DB875AFC584FA32', ped, durationMs, Citizen.returnResultAnyway());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.