How do I auto-spawn entities?

I have 2 different entities that I need to spawn when the server starts, They are both points for Custom spawnpoints. The spawning on ents works fine but I can’t figure out how to auto spawn them (Yes, I did search but the already existing threads were no help).

Both ents have about 6 or 7 places I would like them to spawn.

Any help would be greatly appreciated :slight_smile:

Use ents.Create on the InitPostEntity hook.

Example:
[lua]function SpawnEnt()
local ent = ents.Create(“sent_ball”)
ent:SetPos(Vector(32,32,32))
ent:Spawn()
ent:Activate()
end
hook.Add(“InitPostEntity”, “MapSpawn”, SpawnEnt)[/lua]

Worked fine, Thank you :slight_smile: