Skip to content

BestPixel/yvr_recorder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
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

Step 1

record start h 1 record stop

Step 2

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

Step 3

Put h.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 .

About

a ovr writer script for FiveM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%