My Printer code is structured around a ENT:SpawnFunction to begin printing money with timer etc, especially for it to know who it belongs to. But when spawned through F4 Menu it doesn't know who spawned it in, what function would work for this?
Hooks/Server/playerBoughtCustomEntity
DarkRP/sh_createitems.lua at fe7cba5debf74ee29d601aed0cbd2aa8f9a.. The default spawning of the entity will set the owner before spawning it so you can use initialize, and I believe the server is the one actually spawning the entity.
You can get the owner via self.Getowning_ent.
Sorry, you need to Log In to post a reply to this thread.