Spawn Npc's With LUA code

im pretty new to lua but i know the basics… iv been looking for a while but i cant find any tutorials showing you how to spawn npcs with lua… i would also like to know how to make it so when you press e on it, it would open a gui menu, i can do the rest from their

**[Ents.Create

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Ents.Create)**

thanks, but for the gui menu?

thanks for that to… now how do i make it when you press e on the npc it makes the menu come up

**[ENT.Use

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=ENT.Use)**

Actually for a NPC:

**[ENT.AcceptInput

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=ENT.AcceptInput)**

here’s a good tutorial you can use: http://wiki.garrysmod.com/?title=NPC_Shop_Tutorial

carmine, this was EXACTLY what i was doing :smiley: