[Dev Tool]yvr_recorder | recording yvr files (Vehicle Playback Files) for your races or story

Github

yvr_recorder

a ovr writer script for FiveM.
Record yvr file for

StartPlaybackRecordedVehicle
StartPlaybackRecordedVehicleUsingAi

so you can make some stuff like

IntialD(Showcase Video //VS NPC with StartPlaybackRecordedVehicleUsingAi)
IntialD(Showcase Video2 //VS NPC with StartPlaybackRecordedVehicleUsingAi)
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

Step 1

record start h 1
record stop

Step 2

Find h001.ovr from the path [yourscript]/yvr_recorder/pre-stream/
Transfer h001.ovr to h001.yvr with OPENIV or other tools.

Step 3

Put h001.yvr into [yourscript]/yvr_recorder/stream floder in your script.

Step 4

with NPC ai driving :

record play h 1 1

Playback with your PlayerPedId

record play h 1

Step 5

Move yvr files to your script and copy some playback lines from my client.lua .

14 Likes

what a fuck it is? :thinking:

2 Likes

This is pretty sweet. Thanks for the script!!

2 Likes

Think of it as a route saver for vehicles. VERY useful if you want to shoot a cinematic

2 Likes

You can using this script to record custom .yvr files or play existed playback files in GTA V.such as
fm_taxi001.yvr
fm_taxi002.yvr
fm_taxi003.yvr
~fm_taxi059.yvr
fm_taxi060.yvr
with

record play fm_taxi 59
1 Like

Amazing, glad to see you got it all working :smiley:

1 Like

Love this script!! how do i get it working on races? and is it server-side?

1 Like

Record some playbacks,ovr to yvr,
stream yvr,
Start the race,
Put player at the startpoint
freeze player and load npcs
Playback on npcs,unfreeze player
Detect player if win the race
etc

sorry I don’t understand. do you have a video of how it works.