Props not showing?

Hi, I’ve made this ATM code for these bank atms to spawn on my PERP server. I’ve tested this code on my side first and it worked. But for some reason it doesn’t work when I put in the server. Can someone help me please?

[lua]if SERVER then
–PERP3 EvoCity v33x ATM’s

–Towyard (ATM #1)
local towyard = ents.Create( “prop_physics” )
towyard:SetPos(Vector(842, 4430, 72))
towyard:SetAngles(Angle(0, 180, 0))

–Sububrs Gas Station (ATM #2)
local suburbs = ents.Create( “prop_physics” )
suburbs:SetPos(Vector(10519, 13493, 66))
suburbs:SetAngles(Angle(0, -180, 0))

–Hospital (ATM #3)
local hospital = ents.Create( “prop_physics” )
hospital:SetPos(Vector(-9875, 9413, 72))
hospital:SetAngles(Angle(0, 0, 0))

Just making sure: The AddCSLuaFile() is working, correct? You’re also include()-ing this atms.lua in the appropriate file? (init.lua/shared.lua/cl_init.lua)

Well no, I’m just putting it in the lua/autorun. Is there some place I need to put it?

I’d have hooked it in the gamemode itself.

Put it in “lua/autorun/server/” and come back with results. Your “if SERVER” line won’t be triggered (I don’t think) if you just leave it in the general “autorun” folder.

You said it worked on your side, how did you initially test it?

-snipsnap Read it wrong-

If I’m supposed to create a hook, can someone do it for me? I’m not so pro or good at lua.

Yarrgh! Requests be thataway!

Otherwise you can look into Gamemode.InitPostEntity and hook onto that.