This function was added in SA-MP 0.3.7 and will not work in earlier versions!
Allows you to retrieve the ID of the player the playerid is looking at.
|playerid||The ID of the player to check|
The ID of the player the playerid is looking at
Do not confuse this function with GetPlayerTargetPlayer. GetPlayerTargetPlayer returns the ID of the player playerid is aming at (with a weapon). GetPlayerCameraTargetPlayer returns the ID of the player playerid is looking at (reference point is the center of the screen).
- GetPlayerCameraTargetActor: Get the ID of the actor (if any) a player is looking at.
- GetPlayerCameraTargetVehicle: Get the ID of the vehicle a player is looking at.
- GetPlayerCameraTargetObject: Get the ID of the object a player is looking at.
- GetPlayerCameraFrontVector: Get the player's camera front vector