startVehiclePlayback
Client-side
Starts direct non-looped GTA recorded-car playback on a vehicle owned by the local unoccupied-vehicle syncer.
Syntax
bool startVehiclePlayback(vehicle theVehicle, int recordingId)Arguments
theVehiclevehicleStreamed, non-frozen, non-blown vehicle under valid local sync ownership.
recordingIdintLoaded recording owned by the calling resource.
Returns
true when a native slot started; false for unknown/unloaded recordings, foreign ownership, duplicate/full pools, player drivers, or invalid vehicle state.
Ownership and lifecycle
Playback stops when the resource shuts down, the native vehicle is destroyed or streamed out, or sync ownership is lost. It uses opcode 05EB directly and does not loop.
OOP aliases
vehicle:startPlayback(recordingId)
Where this comes from
SOURCECLuaVehicleDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp INTRODUCED / EXTENDEDeafc816e6Read the commit and why the change was made RELATED CATEGORY HARNESS native-vehicle-recording-test Category-level coverage · test-resources/native-vehicle-recording-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native vehicle recordings works →