How to restrict cops from buying printers?

I have tried figuring this out myself by searching up the question on Google but I could not fin the answer. ( https://www.google.com/search?q=how+do+you+have+cops+unable+to+buy+printers&oq=how+do+you+have+cops+unable+to+buy+printers&aqs=chrome..69i57.21167j0j1&sourceid=chrome&es_sm=122&ie=UTF-8#q=darkrp+how+do+you+have+cops+unable+to+buy+printers )

Anyways, how do I restrict cops from buying printers in GMOD? Is there a way to add custom check to the entity code? Thanks in advanced.

I had a brain fart… https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111