Placing an ent on the map through lua

Hiya everyone.

Well the name basicly says it all, how would i make an ent spawn at a certain place on the map through lua. I have the coordinates of where to put them, i just need them to spawn there on startup(Through the gamemode I’m working on.).

Thanks.

PS:I have searched and found nothing :frowning:

with http://wiki.garrysmod.com/?title=Gamemode.InitPostEntity

Awesome, thanks.

lol you couldn’t have searched too well… ALWAYS check the wiki before posting here… for the love of god! :stuck_out_tongue:

Lol well i knew about http://wiki.garrysmod.com/?title=Entity.SetPos just not the second one.