06.05.2015, 13:42
Quote:
You can use: https://sampwiki.blast.hk/wiki/GetPlayerCameraTargetObject
and I'm not sure if NPCs are targeted as "players": https://sampwiki.blast.hk/wiki/GetPlayerCameraTargetPlayer If it does, a simply check (IsPlayerNPC) would be a good way to do this. |