Hi all, i need to ask this for a better knowing… if i create a a DEFAULT_SCRIPTED_CAMERA if i use the native SetCamCoords while rendering the cam… how can i make the transition between the 2 coords smoother?
the example would be
- CreateCam( blah blah blah)
- SetCamCoords(x,y,z)
- RenderScriptCams(0,1,2500,0,0)
- because i need to move the cam… i use agan SetCamCoords and the cam gets teleported to the new coords… how can i make the cam move from a coord to another?
1 Like
DO_SCREEN_FADE_OUT
DO_SCREEN_FADE_IN?
I guess this is your bet as there isn’t really any other native for it… You could manually smooth it out though I guess
You can create two cams then use SetCamActiveWithInterp() to move to the other one smooth https://runtime.fivem.net/doc/natives/#_0x9FBDA379383A52A4
I have this example of the native where i tried to recreate the “gtav benchmark” in FiveM as you can see the camera moves smoothly between the coords
https://s.theindra.eu/0holt.mp4
EDIT
SetCamParams(cam, 57.0218, -1388.355, 29.8075, 17.568, -0.0024, 117.87, 50.0, 3000, 1, 3, 1)
works with one cam moving between coordinates smoothly
8 Likes
ok so… i create 2 cams can’t move the one already existing… i create 2 cams and use that native?
can you share the GTA V Benchmark Camera with us? 