TasksClient

waypointRecordingGetSpeedAtPoint

WAYPOINT_RECORDING_GET_SPEED_AT_POINT0x005622AEBC33ACA9

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

SignatureJavaScript
waypointRecordingGetSpeedAtPoint(name: string, point: number): number
SignatureLua
waypointRecordingGetSpeedAtPoint(name: string, point: integer): number

Usage

JavaScript
const value = waypointRecordingGetSpeedAtPoint(name, point);
Lua
local value = waypointRecordingGetSpeedAtPoint(name, point)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
pointintnumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Tasks TASK
In the game
float WAYPOINT_RECORDING_GET_SPEED_AT_POINT(const char* name, int point)
Hash
0x005622AEBC33ACA9

Open in the interactive natives reference