Entity works fine except when spawned with spawnmenu

Hi folks,

I have an entity that functions perfectly without errors when spawned with the console (ent_create).
However, when I try spawning it within the entities menu, garry’s mod just freezes. No error messages, nothing.

I’ve googled a lot but couldn’t find anything, what can be wrong?

  • Digaly

You need an ENT:SpawnFunction(client, trace) for your entity.

Oh wow. Thank you! I just wiki’d that and yes, it’s now very obvious to me why it wouldn’t work.
Lots of thanks :slight_smile: