setPedKillOnFoot
Queues GTA's native on-foot kill task against another ped.
Syntax
bool setPedKillOnFoot(ped thePed, ped target)GTA task mapping
05E2 CTaskComplexKillPedOnFootSCM 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
thePedpedLiving streamed ped simulated by this client.
targetpedDistinct 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
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →