Jump to content

Fix camera


OnlineCheater

Recommended Posts

Hey all,

I've this code:

addEventHandler("onClientRender", root, function() 
    if travelling then 
        smoothMoveCamera(....) -- [url]https://wiki.multitheftauto.com/wiki/SmoothMoveCamera[/url] 
    else 
        ???? 
    end 
end 
) 

So here is my problem, once travelling is false, I want to set the camera on the player... ( the part to complet with "????" )

So I've already tried two ways, which are the following ones:

setCameraMatrix(getCameraMatrix(localPlayer)) -- gives floods of errors like: expected vector at argument ....  
  
setCameraTarget(getCameraTarget(localPlayer)) -- freezes the camera on the player but only one position so you're unable to move it ... 

Link to comment

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