TasksClient

taskPlantBomb

TASK_PLANT_BOMB0x965FEC691D55E9BF

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

SignatureJavaScript
taskPlantBomb(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  heading: number
): void
SignatureLua
taskPlantBomb(ped: Ped, x: number, y: number, z: number, heading: number)

Usage

JavaScript
taskPlantBomb(ped, x, y, z, heading);
Lua
taskPlantBomb(ped, x, y, z, heading)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
taskPlantBomb(ped, pos, heading);
Lua · with vectors
taskPlantBomb(ped, pos, heading)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
headingfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_PLANT_BOMB(Ped ped, float x, float y, float z, float heading)
Hash
0x965FEC691D55E9BF

Open in the interactive natives reference