This function was added in SA-MP 0.3.7 and will not work in earlier versions!
Gets id of an actor which is aimed by certain player.
|playerid||The ID of the player to get the target of.|
The ID of the targeted actor, or INVALID_ACTOR_ID if none.
Does not work for joypads/controllers, and after a certain distance. Does not work for the sniper rifle, as it doesn't lock on to anything and as such can't and won't return a player.