requestVehicleRecording
Client-side
Acquires and requests one registered GTA carrec recording for the calling resource.
Syntax
bool requestVehicleRecording(int recordingId)Arguments
recordingIdintRegistered native recording ID.
Returns
true when requested or already owned; false for unknown recordings or load failure.
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.
Important behavior
- Repeated calls are idempotent and may reload a buffer released by natural completion.
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 →