You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you're in a vehicle with a custom camera matrix (setCameraMatrix) and have your vehicle destroyed by the server (destroyElement) the actual camera target gets reset to the localPlayer but getCameraTarget() still returns false. The camera is now totally bugged and cannot be changed using setCameraMatrix anymore.
Hard to explain, reproducing should explain it.
To reproduce
Get into a vehicle
crun setCameraMatrix(0,0,0) --camera matrix can be changed without a problem
srun destroyElement(getRandomPlayer().vehicle) --your camera will rapidly fly back to your ped (that will glitch your camera)
crun getCameraTarget() --returns false but the actual camera target is localPlayer
crun setCameraMatrix(0,0,0) --camera matrix cannot be changed anymore
crun setCameraTarget(localPlayer) --the problem can only be fixed by resetting the camera target
Expected behaviour
Either the custom camera matrix should remain set, or getCameraTarget() should return local player. Also I kept falling through the ground after the vehicle was destroyed because it must be still trying to stream 0, 0, 0 and not where I was at.
Describe the bug
When you're in a vehicle with a custom camera matrix (setCameraMatrix) and have your vehicle destroyed by the server (destroyElement) the actual camera target gets reset to the localPlayer but getCameraTarget() still returns false. The camera is now totally bugged and cannot be changed using setCameraMatrix anymore.
Hard to explain, reproducing should explain it.
To reproduce
Expected behaviour
Either the custom camera matrix should remain set, or getCameraTarget() should return local player. Also I kept falling through the ground after the vehicle was destroyed because it must be still trying to stream 0, 0, 0 and not where I was at.
Version
Both v1.5.6-release-14414
Additional context
From https://bugs.mtasa.com/view.php?id=8598
The text was updated successfully, but these errors were encountered: