SA-MP Forums Archive
SetVehicleZAngle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: SetVehicleZAngle (/showthread.php?tid=578092)

Pages: 1 2


Re: SetVehicleZAngle - Spmn - 21.06.2015

It IS actually a problem. SetVehicleZAngle shouldn't require a streamed player in order to apply the update.


Re: SetVehicleZAngle - Raphinity - 08.07.2015

I confirm this bug.
We have to set the vehicle z-angle in OnVehicleStreamIn.
Another solution is to destroy and recreate the vehicle for setting its new z-angle...


Re: SetVehicleZAngle - Crayder - 08.07.2015

Hook SetVehicleZAngle.
If the vehicle isn't streamed in for any player, set a timer.
In the timer keep setting it again until GetVehicleZAngle retrieves the desired angle.

This IS a GTA bug, not SA-MP. The game natively destroys and creates vehicles as they stream for the player, it's the in-built streamer in SA-MP that allows that. You could do these same things with a reference to the car in CLEO, the results will be the same (if the vehicle isn't streamed in it won't work). Therefore it could be natively fixed, but until then quick whining.



Kurta's streamer fork with vehicle support fixes this since it manually streams vehicles.