VehicleClient

getTotalDurationOfVehicleRecording

GET_TOTAL_DURATION_OF_VEHICLE_RECORDING0x0E48D1C262390950

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

SignatureJavaScript
getTotalDurationOfVehicleRecording(recording: number, script: string): number
SignatureLua
getTotalDurationOfVehicleRecording(recording: integer, script: string): number

Usage

JavaScript
const value = getTotalDurationOfVehicleRecording(recording, script);
Lua
local value = getTotalDurationOfVehicleRecording(recording, script)

Parameters

ParameterTypeJavaScriptLua
recordingintnumberinteger
scriptstringstringstring

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
Vehicle VEHICLE
In the game
float GET_TOTAL_DURATION_OF_VEHICLE_RECORDING(int recording, const char* script)
Hash
0x0E48D1C262390950

Open in the interactive natives reference