The portals and barricades are npcs.
It is possible but would need some modification with your server sided object spawning so cba to help with that, otherwise just use an npc instead of an object. (Npc that looks like an object)
(You can create your own , plenty tutorials out there about hardcoding custom npcs and modeling)
(Or you can hardcode an object you already have in mind as an npc, just grab the modelid and modify the int to your liking)