taskStealthKill
TASK_STEALTH_KILL0xAA5DC05579D60BD9The 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.
taskStealthKill(
killer: Ped,
target: Ped,
stealthKillActionResultHash: Hash,
desiredMoveBlendRatio: number,
stealthFlags: number
): voidtaskStealthKill(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
killer | Ped | number | integer |
target | Ped | number | integer |
stealthKillActionResultHash | Hash | number | integer |
desiredMoveBlendRatio | float | number | number |
stealthFlags | int | number | integer |
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