Custom Dark Rp Money printer not going away on disconnect

I created a new money printer and everything works out great except

When the player who spawned the money printer leaves it stays there (ie lagging up the server with 100k small money bills)

i need it to go away like the normal money printer or the gun lab.

any suggestions?

IIRC there’s a PlayerDisconnected hook in the DarkRP gamemode files where you’ll find a few lines where it removes those entities.

would you happen to know where exactly thats at? iv been looking for a good while now and cant seem to find it

--------------EDIT-----------------
For those of you trying google search to find this like i was its

gamemodes/DarkRP/gamemode/sv_gamemode_functions.lua

about 1/5 of the way from the bottom is where it is at

thxs for the help