[LUA Scripting Question] Server-side detecting the entities into a player's field of view?

Hello there people, I would like to know if the server-side can detect the entities that the player is seeing on his/her field of view (all around the screen)?
And if it’s possible, how I can do it?

Trace is shared, so it should work.

Here’s an example in a clientside script:

It basically shows in how much fovs of players you are.

I think you can modify it to fit your job and make it serverside.

Thanks for your help.