TasksClient

waypointPlaybackStartShootingAtCoord

WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD0x057A25CFCC9DB671

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

SignatureJavaScript
waypointPlaybackStartShootingAtCoord(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  p4: boolean,
  firingPattern: Hash
): void
SignatureLua
waypointPlaybackStartShootingAtCoord(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  p4: boolean,
  firingPattern: Hash
)

Usage

JavaScript
waypointPlaybackStartShootingAtCoord(ped, x, y, z, p4, firingPattern);
Lua
waypointPlaybackStartShootingAtCoord(ped, x, y, z, p4, firingPattern)

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
waypointPlaybackStartShootingAtCoord(ped, pos, p4, firingPattern);
Lua · with vectors
waypointPlaybackStartShootingAtCoord(ped, pos, p4, firingPattern)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
p4BOOLbooleanboolean
firingPatternHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD(Ped ped, float x, float y, float z, BOOL p4, Hash firingPattern)
Hash
0x057A25CFCC9DB671

Open in the interactive natives reference