From Official DarkRP Wiki
|Function name||Vector:isInSight(table filter, Player ply)|
|Decides whether the vector could be seen by the player if they were to look at it.|
|Returns:||boolean answer, Vector HitPos|
|Part of Library:||Vector|
- filter (table)
- ply (Player)
Trace filter that decides what the player can see through.
The player for whom the vector may or may not be visible.
Function return values
- answer (boolean)
- HitPos (Vector)
Whether the player can see the position.
The position of the thing that blocks the player's sight.