GraphicsClientChecked by LS:MP

setTrackedPointInfo

SET_TRACKED_POINT_INFO0x164ECBB3CF750CB0

The GTA V native SET_TRACKED_POINT_INFO of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setTrackedPointInfo, in JavaScript and in Lua.

SignatureJavaScript
setTrackedPointInfo(
  point: number,
  x: number,
  y: number,
  z: number,
  radius: number
): void
SignatureLua
setTrackedPointInfo(
  point: integer,
  x: number,
  y: number,
  z: number,
  radius: number
)

Usage

JavaScript
setTrackedPointInfo(point, x, y, z, radius);
Lua
setTrackedPointInfo(point, x, y, z, radius)

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
setTrackedPointInfo(point, pos, radius);
Lua · with vectors
setTrackedPointInfo(point, pos, radius)

Parameters

ParameterTypeJavaScriptLua
pointintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

point must be a tracked point that is currently allocated; x, y, z, radius must be finite numbers. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_TRACKED_POINT_INFO(int point, float x, float y, float z, float radius)
Hash
0x164ECBB3CF750CB0

Open in the interactive natives reference