TasksClient

getPedWaypointDistance

GET_PED_WAYPOINT_DISTANCE0xE6A877C64CAF1BC5

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

SignatureJavaScript
getPedWaypointDistance(p0: any): number
SignatureLua
getPedWaypointDistance(p0: any): number

Usage

JavaScript
const value = getPedWaypointDistance(p0);
Lua
local value = getPedWaypointDistance(p0)

Parameters

ParameterTypeJavaScriptLua
p0Anyanyany

Returns

float JavaScript number, Lua number

Reference

Namespace
Tasks TASK
In the game
float GET_PED_WAYPOINT_DISTANCE(Any p0)
Hash
0xE6A877C64CAF1BC5

Open in the interactive natives reference