Can't see entities.

While setting up a DarkRP server editing a few basic lua files to add jobs and guns shipments I have had the problem where after a while of being on the server all the maps windows, doors and anything entity related seems to go invisible, now my lua coding is not amazing so any input how I can improve or fix both these codes would be much help.
If I find it helps me to a high amount you might just find free vip somewhere on my server. :wink:

Shared.lua :

Addentities.lua :