Jump to content

[HELP] Fixed Vehicle Camera


Recommended Posts

Posted

Anyone know how can I make a fully fixed vehicle camera?

I tried this, it's pretty close to what I want but the camera is still moving up and down. I need to make the camera completely frozen

setCameraTarget ( localPlayer )

Example of what I want

 

Posted
attachElements( getCamera(), getPedOccupiedVehicle( localPlayer ), 0, -5, 1.5, -10, 0, 0 );

I think this is the result you want.
 

 

  • Thanks 1
Posted

Thanks a lot, but now I can't make it go back to original camera.
I tried this, but camera doesn't get connected to player it's just detaching from vehicle and not moving at all.

detachElements( getCamera() )
setCameraMatrix ( localPlayer )

 

Posted (edited)
15 minutes ago, highwaywarrior said:

Thanks a lot, but now I can't make it go back to original camera.
I tried this, but camera doesn't get connected to player it's just detaching from vehicle and not moving at all.



detachElements( getCamera() )
setCameraMatrix ( localPlayer )

 

try this without detachElements and setCameraMatrix

setCameraTarget( localPlayer )


 

Edited by XaskeL

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...