VehicleClient

getPositionInRecording

GET_POSITION_IN_RECORDING0x2DACD605FC681475

The GTA V native GET_POSITION_IN_RECORDING of the VEHICLE namespace, as LS:MP client scripts call it: the global function getPositionInRecording, in JavaScript and in Lua.

SignatureJavaScript
getPositionInRecording(vehicle: Vehicle): number
SignatureLua
getPositionInRecording(vehicle: Vehicle): number

Usage

JavaScript
const value = getPositionInRecording(vehicle);
Lua
local value = getPositionInRecording(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

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.

Distance traveled in the vehicles current recording.

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_POSITION_IN_RECORDING(Vehicle vehicle)
Hash
0x2DACD605FC681475

Open in the interactive natives reference