darkrp pocket glitch issue

i am running a darkrp server i have a drug dealer and a bartender, if you buy an consumable entities from these guys, and pocket it and take it out, the entities will be infinite use.
this is with the slandered darkrp pocket.

example buy drug like cocaine pocket it take it out use it, it will not disappear and u can keep using it.

Go to the entity folder, go to the server side file. Check for the Use function.

do self:Remove()

If it’s already in there then I don’t know :slight_smile:

[editline]3rd May 2016[/editline]

Wait nevermind this is specifically for after you pocket them and take it out.
I don’t know about that!
If it has worked before, and is no longer working, it’s most likely due to an addon you’ve added in recently.

not sure if it worked fine before.i just noticed it.

The pocket uses duplicator.CopyEntTable and saves the entities data table vars. It doesn’t store everything about the entity. I had this ‘problem’ years ago and edited the pocket to save the stuff I wanted ( https://github.com/vrondakis/Leveling-System/blob/master/addons/darkrpmodification/lua/weapons/pocket/sv_init.lua#L25-L30 ) but you should probably have data like that in dt vars