23.06.2017, 04:04
It's not possible to influence the camera angle while it is attached. Any Camera functions will detach the camera, TogglePlayerControllable seems the only way to freeze it but the camera will be locked at a specific angle, facing somewhere up (useless).
You can however work with the different spectate modes. Mode 3 fixes the Camera in the direction the vehicle is facing and lets you also set the look at position. But the problem is that you cannot drive yourself while having the cam activated...
So it's not really possible to create a fixed dashcam while driving the vehicle, but something similar if you are spectator.
That will detach the camera and place it at the last position it was at before attaching it.
You can however work with the different spectate modes. Mode 3 fixes the Camera in the direction the vehicle is facing and lets you also set the look at position. But the problem is that you cannot drive yourself while having the cam activated...
So it's not really possible to create a fixed dashcam while driving the vehicle, but something similar if you are spectator.
Quote:
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Use this function in a timer to set the camera's lookat every second For the x and y parameters , use the getxyinfrontofplayer function And set the angle to the vehicle's z angle |