Simple Prop stripit

Hi, I’m not very pro at lua and all. But I made this code with simple basic lua script. And I wanna make this work on my server. Can someone finish this script for me?

[lua]if SERVER then
AddCSLuaFile(“atms.lua”)
end
–PERP3 EvoCity v33x ATM’s

–Towyard (ATM #1)
local towyard = ents.Create( “prop_physics” )
towyard:SetModel(“models/PERP2/bank_atm/bank_atm.mdl”)
towyard:SetPos(Vector(842, 4430, 72))
towyard:SetAngles(Angle(0, 180, 0))
towyard:Spawn()

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

–Hospital (ATM #3)
local hospital = ents.Create( “prop_physics” )
hospital:SetModel(“models/PERP2/bank_atm/bank_atm.mdl”)
hospital:SetPos(Vector(-9875, 9413, 72))
hospital:SetAngles(Angle(0, 0, 0))
hospital:Spawn()[/lua]

Also tell me where it would go, I had it in lua/autorun and it worked fine but when I put in server, it doesn’t work at all.

you should hook it in to InitPostEntity, like so:

[lua]
if SERVER then
AddCSLuaFile(“atms.lua”)
end

function dosomeshit()
–Towyard (ATM #1)
local towyard = ents.Create( “prop_physics” )
towyard:SetModel(“models/PERP2/bank_atm/bank_atm.mdl”)
towyard:SetPos(Vector(842, 4430, 72))
towyard:SetAngles(Angle(0, 180, 0))
towyard:Spawn()

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

–Hospital (ATM #3)
local hospital = ents.Create( “prop_physics” )
hospital:SetModel(“models/PERP2/bank_atm/bank_atm.mdl”)
hospital:SetPos(Vector(-9875, 9413, 72))
hospital:SetAngles(Angle(0, 0, 0))
hospital:Spawn()
end

hook.Add(“InitPostEntity”, “986797676”, dosomeshit)[/lua]

put it in lua/autorun

OK so I gave the code a try, doesn’t seem to work still :confused:

No errors in console?

No sir