get nearest vehicle in front of you
#1

Hi everyone,

I have a function, that gets the nearest vehicle in range of the player.
What i want to do now, is get the nearest vehicle in front of the player..

Is there anyone who can think of a function like that??

Thanks in advance
Reply
#2

Maybe anyone of these could help you?

Код:
GetPlayerFacingAngle()
GetPlayerCameraFrontVector()
InterpolateCameraLookAt()
Mysqlif i don't know what they are used for, but it seems like they are used for get a players camera
At least GetPlayerFacingAngle() works, but i don't know how to check if the cars is in that area.
Reply
#3

i will try something with those.. thanks
if anyone has a stock function, it would be great

thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)