Moin moin,
how can I get the owner of an entity which was spawned by a tool gun? I’m at coding a gamemode where entities will cost money, but if you use OnEntityCreated(ent) you don’t get any owner and the sandbox hooks like GM:PlayerSpawnSENT( pl, ent ) don’t work for toolgun spawned entities. Somewhere in the forums I read something about undo and the entity table but I have no idea how to get this.
I hope you can help me.