Vehicle gun is aiming at?

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,695
Likes
115
Points
208
Website
youtube.com
#1
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....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,096
Likes
145
Points
208
#2
You can solve this problem
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