Vehicle gun is aiming at?

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
104
So I want to make a speed radar gun script for a sa-mp server where you have a camera ( literally the camera in game ) and when you take pictures of cars going by it gets the speed and details of them. But how do you get what the camera is aimed at as I could easily make it display details of nearby vehicles but I want it so whatever vehicle the camera takes a picture of it gets the details of that vehicle.
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,116
Reaction score
167
You can solve this problem
956534.png
by just taking your rotation and doing some stuff OR your camera front vector and multiplying it by your desired amount.

http://wiki.sa-mp.com/wiki/GetPlayerCameraFrontVector
There's even an example for that.
 
Top