TaskStealthKill
DocsTaskStealthKill(killer, target, actionType, p3, p4)Description
Stealth kill action name hashes:
stealth kills can be found here: Grand Theft Auto V\common.rpf\data\action\stealth_kills.meta
...
{
"ACT_stealth_kill_a",
"ACT_stealth_kill_weapon",
"ACT_stealth_kill_b",
"ACT_stealth_kill_c",
"ACT_stealth_kill_d",
"ACT_stealth_kill_a_gardener"
}
Only known script using this native: fbi4_prep2
EXAMPLE:
ai::task_stealth_kill(iParam1, Local_252, gameplay::get_hash_key("AR_stealth_kill_a"), 1f, 0);ai::task_stealth_kill(iParam1, Local_252, gameplay::get_hash_key("AR_stealth_kill_knife"), 1f, 0);
Also it may be important to note, that each time this task is called, it's followed by AI::CLEAR_PED_TASKS on the target
Parameters
| Name | Type | Description |
|---|---|---|
killer | Ped | — |
target | Ped | — |
actionType | Hash | — |
p3 | float | — |
p4 | Any | — |
Quick Snippet: Get Ped Handlekillertarget
killertargetUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.