SA-MP Forums Archive
GetPlayerCameraPos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerCameraPos (/showthread.php?tid=656864)



GetPlayerCameraPos - iBots - 25.07.2018

Well, may someone explain what exactly are the x,y,z that the function returns? and how could they be used to know if an object is shown on the player's screen? for example to calculate the x and y of the objects on the player's screen and show a player textdraw on the object...


Re: GetPlayerCameraPos - JasonRiggs - 26.07.2018

Well, after reading this Yeah, You can check if the objects coordinates is in range of the Camera Pos..