The Lab
PED native

_SET_PED_MELEE_FORCED_DURATION

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to force the current melee action of ped to last durationMs milliseconds.

Signature

C
BOOL _SET_PED_MELEE_FORCED_DURATION(Ped ped, int durationMs); // 0x6DB875AFC584FA32 b1207

Parameters

#NameType
1pedPed
2durationMsint

Facts

Facts about _SET_PED_MELEE_FORCED_DURATION
Name
_SET_PED_MELEE_FORCED_DURATION
Hash
0x6DB875AFC584FA32
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x6DB875AFC584FA32, -- _SET_PED_MELEE_FORCED_DURATION
  PlayerPedId(), -- Ped ped
  0 -- int durationMs
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x6DB875AFC584FA32", // _SET_PED_MELEE_FORCED_DURATION
  PlayerPedId(), // Ped ped
  0, // int durationMs
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x6DB875AFC584FA32, // _SET_PED_MELEE_FORCED_DURATION
  API.PlayerPedId(), // Ped ped
  0 // int durationMs
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.