So im editing the DarkRP Keys, basically i have this other bit of code which opens a menu, how would i check if a player is not looking at a car or door so the Primary and Secondary attack functions can change. So if a player is looking at a door they can lock it and unlock it, if they are looking at anything but a door they can open a menu. Thanks.
[editline]31st March 2016[/editline]
I forgot to add, currently the menu does open just overrides the default Primary Attack etc.