TasksClient

taskVehicleShootAtPed

TASK_VEHICLE_SHOOT_AT_PED0x10AB107B887214D8

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

SignatureJavaScript
taskVehicleShootAtPed(ped: Ped, target: Ped, fireTolerance: number): void
SignatureLua
taskVehicleShootAtPed(ped: Ped, target: Ped, fireTolerance: number)

Usage

JavaScript
taskVehicleShootAtPed(ped, target, fireTolerance);
Lua
taskVehicleShootAtPed(ped, target, fireTolerance)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
targetPednumberinteger
fireTolerancefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_VEHICLE_SHOOT_AT_PED(Ped ped, Ped target, float fireTolerance)
Hash
0x10AB107B887214D8

Open in the interactive natives reference