TasksClient

taskPutPedDirectlyIntoMelee

TASK_PUT_PED_DIRECTLY_INTO_MELEE0x1C6CD14A876FFE39

The GTA V native TASK_PUT_PED_DIRECTLY_INTO_MELEE of the TASK namespace, as LS:MP client scripts call it: the global function taskPutPedDirectlyIntoMelee, in JavaScript and in Lua.

SignatureJavaScript
taskPutPedDirectlyIntoMelee(
  ped: Ped,
  meleeTarget: Ped,
  blendInDuration: number,
  timeInMelee: number,
  strafePhaseSync: number,
  aiCombatFlags: number
): void
SignatureLua
taskPutPedDirectlyIntoMelee(
  ped: Ped,
  meleeTarget: Ped,
  blendInDuration: number,
  timeInMelee: number,
  strafePhaseSync: number,
  aiCombatFlags: integer
)

Usage

JavaScript
taskPutPedDirectlyIntoMelee(
  ped, meleeTarget, blendInDuration, timeInMelee, strafePhaseSync, aiCombatFlags
);
Lua
taskPutPedDirectlyIntoMelee(
    ped, meleeTarget, blendInDuration, timeInMelee, strafePhaseSync, aiCombatFlags
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
meleeTargetPednumberinteger
blendInDurationfloatnumbernumber
timeInMeleefloatnumbernumber
strafePhaseSyncfloatnumbernumber
aiCombatFlagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

from armenian3.c4

taskPutPedDirectlyIntoMelee(PlayerPed, armenianPed, 0.0, -1.0, 0.0, 0);

Reference

Namespace
Tasks TASK
In the game
void TASK_PUT_PED_DIRECTLY_INTO_MELEE(Ped ped, Ped meleeTarget, float blendInDuration, float timeInMelee, float strafePhaseSync, int aiCombatFlags)
Hash
0x1C6CD14A876FFE39

Open in the interactive natives reference