isVehiclePlaybackActive
Client-side
Reports whether GTA's native 16-slot player currently contains the vehicle.
Syntax
bool isVehiclePlaybackActive(vehicle theVehicle)Arguments
theVehiclevehicleStreamed vehicle.
Returns
true while native playback is active; false otherwise.
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:isPlaybackActive()vehicle.playbackActive
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 →