HUDClient

addPointToGpsCustomRoute

ADD_POINT_TO_GPS_CUSTOM_ROUTE0x311438A071DD9B1A

The GTA V native ADD_POINT_TO_GPS_CUSTOM_ROUTE of the HUD namespace, as LS:MP client scripts call it: the global function addPointToGpsCustomRoute, in JavaScript and in Lua.

SignatureJavaScript
addPointToGpsCustomRoute(x: number, y: number, z: number): void
SignatureLua
addPointToGpsCustomRoute(x: number, y: number, z: number)

Usage

JavaScript
addPointToGpsCustomRoute(x, y, z);
Lua
addPointToGpsCustomRoute(x, y, z)

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
addPointToGpsCustomRoute(pos);
Lua · with vectors
addPointToGpsCustomRoute(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void ADD_POINT_TO_GPS_CUSTOM_ROUTE(float x, float y, float z)
Hash
0x311438A071DD9B1A

Open in the interactive natives reference