_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).
Hash
0x6DB875AFC584FA32Runtime name
SetPedMeleeForcedDurationNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _SET_PED_MELEE_FORCED_DURATION(Ped ped, int durationMs);Parameters
| Name | Type | Description |
|---|---|---|
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
local retval = SetPedMeleeForcedDuration(ped, durationMs)
-- always works, by hash
local retval = Citizen.InvokeNative(0x6DB875AFC584FA32, ped, durationMs, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = SetPedMeleeForcedDuration(ped, durationMs);
// by hash
const retval = Citizen.invokeNative('0x6DB875AFC584FA32', ped, durationMs, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.