I want to restrict jobs like Civil Protection, Admin on Duty, Mayor, and Hobo from buying printers. Here's one of the printers in darkrpmodification-master/lua/darkrp_customthings/entities.lua.
[lua]AddEntity("Emerald Money Printer", {
ent = "money_emerald_printer",
model = "models/props_lab/reciever01a.mdl",
price = 35000,
max = 2,
cmd = "emeraldprinter",
customCheck = function(ply) return ply:Team() != TEAM_POLICE or ply:Team() != TEAM_CHIEF or ply:Team() != TEAM_HOBO or ply:Team() != TEAM_AOD end,
CustomCheckFailMsg = "You can not purchase printers with the current team you are in.",
})[/lua]
It didn't work. They were still able to buy the printers.
Sorry, you need to Log In to post a reply to this thread.