VehicleClient

requestVehicleRecording

REQUEST_VEHICLE_RECORDING0xAF514CABE74CBF15

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

SignatureJavaScript
requestVehicleRecording(recording: number, script: string): void
SignatureLua
requestVehicleRecording(recording: integer, script: string)

Usage

JavaScript
requestVehicleRecording(recording, script);
Lua
requestVehicleRecording(recording, script)

Parameters

ParameterTypeJavaScriptLua
recordingintnumberinteger
scriptstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Request the vehicle recording defined by the lowercase format string "%s%03d.yvr". For example, requestVehicleRecording(1, "FBIs1UBER") corresponds to fbis1uber001.yvr.
For all vehicle recording/playback natives, "script" is a common prefix that usually corresponds to the script/mission the recording is used in, "recording" is its int suffix, and "id" (e.g., in native getTotalDurationOfVehicleRecordingId) corresponds to a unique identifier within the recording streaming module.
Note that only 24 recordings (hardcoded in multiple places) can ever active at a given time before clobbering begins.

Reference

Namespace
Vehicle VEHICLE
In the game
void REQUEST_VEHICLE_RECORDING(int recording, const char* script)
Hash
0xAF514CABE74CBF15

Open in the interactive natives reference