• DarkRP Entity Problem
    5 replies, posted
So I'm a dev at a server, and I'm making a ammo constructor. When I buy it from the F4 menu, it works fine, but then when it is destroyed, it remains in my max ammo constructors (2). So if I buy 2 and destroy 2, I can't make any more. Any help, please?
Well i would assume you would have to subtract it from the count on the hook: [lua] function ENT:OnRemove() end [/lua]
Yes, but how do I do that?
Could i see the entity code? sh, init, cl_init?
Look at the existing code for printers, microwaves etc
I've done that, and I still can't find it.
Sorry, you need to Log In to post a reply to this thread.