TasksClient

taskStealthKill

TASK_STEALTH_KILL0xAA5DC05579D60BD9

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

SignatureJavaScript
taskStealthKill(
  killer: Ped,
  target: Ped,
  stealthKillActionResultHash: Hash,
  desiredMoveBlendRatio: number,
  stealthFlags: number
): void
SignatureLua
taskStealthKill(
  killer: Ped,
  target: Ped,
  stealthKillActionResultHash: Hash,
  desiredMoveBlendRatio: number,
  stealthFlags: integer
)

Usage

JavaScript
taskStealthKill(
  killer, target, stealthKillActionResultHash, desiredMoveBlendRatio, stealthFlags
);
Lua
taskStealthKill(
    killer, target, stealthKillActionResultHash, desiredMoveBlendRatio, stealthFlags
)

Parameters

ParameterTypeJavaScriptLua
killerPednumberinteger
targetPednumberinteger
stealthKillActionResultHashHashnumberinteger
desiredMoveBlendRatiofloatnumbernumber
stealthFlagsintnumberinteger

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.

known "killTypes" are: "AR_stealth_kill_knife" and "AR_stealth_kill_a".

Reference

Namespace
Tasks TASK
In the game
void TASK_STEALTH_KILL(Ped killer, Ped target, Hash stealthKillActionResultHash, float desiredMoveBlendRatio, int stealthFlags)
Hash
0xAA5DC05579D60BD9

Open in the interactive natives reference