RedM Natives

TASK_PUT_PED_DIRECTLY_INTO_MELEE

Hash0x1C6CD14A876FFE39
Runtime nameTaskPutPedDirectlyIntoMelee
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1C6CD14A876FFE39

Signature

void TASK_PUT_PED_DIRECTLY_INTO_MELEE(Ped ped, Ped meleeTarget, Hash meleeStyle, float p3, float animBlendRatio, BOOL p5, int p6);

Parameters

NameTypeDescription
pedPed—
meleeTargetPed—
meleeStyleHash—
p3float—
animBlendRatiofloat—
p5BOOL—
p6int—

Returns void

Description

meleeStyles: AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_MOUNT_FACEDOWN_FROM_FRONT, AR_ALLIGATOR_LEAPKILL, AR_ALLIGATOR_WAIST_AUTOKILL_FRONT

Usage

Lua
TaskPutPedDirectlyIntoMelee(ped, meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6)

-- always works, by hash
Citizen.InvokeNative(0x1C6CD14A876FFE39, ped, meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6)
JavaScript and C#
JavaScript
TaskPutPedDirectlyIntoMelee(ped, meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6);

// by hash
Citizen.invokeNative('0x1C6CD14A876FFE39', ped, meleeTarget, meleeStyle, p3 + 0.0000001, animBlendRatio + 0.0000001, p5, p6);
C#
Function.Call((Hash)0x1C6CD14A876FFE39, ped, meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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