TasksClient

waypointPlaybackStartAimingAtCoord

WAYPOINT_PLAYBACK_START_AIMING_AT_COORD0x8968400D900ED8B3

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

SignatureJavaScript
waypointPlaybackStartAimingAtCoord(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  p4: boolean
): void
SignatureLua
waypointPlaybackStartAimingAtCoord(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  p4: boolean
)

Usage

JavaScript
waypointPlaybackStartAimingAtCoord(ped, x, y, z, p4);
Lua
waypointPlaybackStartAimingAtCoord(ped, x, y, z, p4)

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
p4BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

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

Open in the interactive natives reference