Skip to content

setPedKillOnFoot

Client-side

Available in Neon, not standard MTA

Queues GTA's native on-foot kill task against another ped.

Syntax

bool setPedKillOnFoot(ped thePed, ped target)

GTA task mapping

ORIGINAL GTA TASK 05E2
CTaskComplexKillPedOnFoot

SCM equivalent: TASK_KILL_CHAR_ON_FOOT

GTA keeps control of pursuit, weapon choice, aiming, melee fallback, and vehicle handling for this indefinite combat task.

Arguments

thePedped

Living streamed ped simulated by this client.

targetped

Distinct living streamed target ped.

Returns

true when the combat task was queued; false for invalid peds, liveness, streaming, ownership, or task construction.

Ownership and lifecycle

Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.

OOP aliases

  • ped:setKillOnFoot(target)

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →