RedM Natives

REQUEST_VEHICLE_RECORDING

Request the vehicle recording defined by the lowercase format string "%s%03d.yvr".

Hash0xC474CF16EDA45DC9
Runtime nameRequestVehicleRecording
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAF514CABE74CBF15

Signature

void REQUEST_VEHICLE_RECORDING(int recording, const char* script);

Parameters

NameTypeDescription
recordingint—
scriptconst char*—

Returns void

Description

Request the vehicle recording defined by the lowercase format string "%s%03d.yvr". For example, REQUEST_VEHICLE_RECORDING(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" corresponds to a unique identifier within the recording streaming module.
(GTA) Note that only 24 recordings (hardcoded in multiple places) can ever active at a given time before clobbering begins.

Usage

Lua
RequestVehicleRecording(recording, script)

-- always works, by hash
Citizen.InvokeNative(0xC474CF16EDA45DC9, recording, script)
JavaScript and C#
JavaScript
RequestVehicleRecording(recording, script);

// by hash
Citizen.invokeNative('0xC474CF16EDA45DC9', recording, script);
C#
Function.Call((Hash)0xC474CF16EDA45DC9, recording, script);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.