a ovr writer script for FiveM. Record yvr file for
StartPlaybackRecordedVehicle
StartPlaybackRecordedVehicleUsingAi
so you can make some stuff like
IntialD(Showcase Video)
IntialD(Showcase Video2)
by using command
record start routename routeid
record play routename routeid isAiDriving(Follow the recorded route with NPC ai driving instead.)
record stop
You can bind the command to a key with Using the new console key bindings
Important notes:
StartPlaybackRecordedVehicleUsingAi -- npc driving could fail when it driving on the mountain,but after that NPC will automatic try using AI to drive to the recorded position from the yvr recorded.
StartPlaybackRecordedVehicle -- force the vehicle full-following from the recorded playback
Others natives relative:
SetPlaybackSpeed(vehicle,speed)
SetVehicleActiveDuringPlayback(vehicle, true);
if IsPlaybackGoingOnForVehicle(vehicle) then
StopPlaybackRecordedVehicle(vehicle); -- just end
SkipToEndAndStopPlaybackRecordedVehicle(vehicle); -- teleport to the record end position
end
Step example and tutorial: Youtube
record start h 1 record stop
Find h.ovr from the path [yourscript]/yvr_recorder/pre-stream/ Transfer h.ovr to h.yvr with OPENIV or other tools.
Put h.yvr into [yourscript]/yvr_recorder/stream floder in your script.
record play h 1 1
record play h 1
Move yvr files to your script and copy some playback lines from my client.lua .