DTVar Help

How do you set up a DTVar (Owning_ent) for cusotm printers in darkrp to keep track of buying printers and resetting the limit. Originally, if you buy them and destroy them, the limit wont reset and it will not allow you to buy anymore. I know I need one I just don’t know how to set it up.

I know it’s a noob question but any help is appreciated :smiley:

To clarify: what would I need to change the default lua to?

[lua]ENT.Type = “anim”
ENT.Base = “base_gmodentity”
ENT.PrintName = “Money Printer”
ENT.Author = “Render Case and philxyz”
ENT.Spawnable = false
ENT.AdminSpawnable = false

function ENT:SetupDataTables()