How to stop players from spawning props in a designated area(spawn for this.)

Hello I’d like to restrict people from spawning props in spawn, but I have absolutely no idea how to do it so im hoping someone can help me out.

You’d want to create a “box” where the top corner is one vector and the opposite bottom corner is the other. Then hook PlayerSpawnObject, do an eyetrace to see where the entity would spawn and if it would spawn inside of this box then return false in the PlayerSpawnObject hook.