VehicleClient

startPlaybackRecordedVehicleWithFlags

START_PLAYBACK_RECORDED_VEHICLE_WITH_FLAGS0x7D80FD645D4DA346

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

SignatureJavaScript
startPlaybackRecordedVehicleWithFlags(
  vehicle: Vehicle,
  recording: number,
  script: string,
  flags: number,
  time: number,
  drivingStyle: number
): void
SignatureLua
startPlaybackRecordedVehicleWithFlags(
  vehicle: Vehicle,
  recording: integer,
  script: string,
  flags: integer,
  time: integer,
  drivingStyle: integer
)

Usage

JavaScript
startPlaybackRecordedVehicleWithFlags(vehicle, recording, script, flags, time, drivingStyle);
Lua
startPlaybackRecordedVehicleWithFlags(vehicle, recording, script, flags, time, drivingStyle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
recordingintnumberinteger
scriptstringstringstring
flagsintnumberinteger
timeintnumberinteger
drivingStyleintnumberinteger

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.

flags requires further research, e.g., 0x4/0x8 are related to the AI driving task and 0x20 is internally set and interacts with dynamic entity components.

time, often zero and capped at 500, is related to setPlaybackToUseAiTryToRevertBackLater

Reference

Namespace
Vehicle VEHICLE
In the game
void START_PLAYBACK_RECORDED_VEHICLE_WITH_FLAGS(Vehicle vehicle, int recording, const char* script, int flags, int time, int drivingStyle)
Hash
0x7D80FD645D4DA346

Open in the interactive natives reference