VehicleClient

getTimePositionInRecording

GET_TIME_POSITION_IN_RECORDING0x5746F3A7AB7FE544

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

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

Usage

JavaScript
const value = getTimePositionInRecording(vehicle);
Lua
local value = getTimePositionInRecording(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.

Can be used with getTotalDurationOfVehicleRecording{_ID} to compute a percentage.

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_TIME_POSITION_IN_RECORDING(Vehicle vehicle)
Hash
0x5746F3A7AB7FE544

Open in the interactive natives reference