Garry's Mod
Gemstone Money Printers (Requires DarkRP 2.7.x)
Trying to make it so printer is only purchasable by certain jobs
Hey,

I've already tried adding the entity to the entities.lua file in the darkrpmodification folder and also the file in gemstone printers under customthings but that still didn't seem to help. At the moment only citizens can buy the printers.

This is the code for one of my printers:

DarkRP.createEntity("Tier 3 Printer", {
ent = "emerald_money_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 25000,
max = 3,
cmd = "buyemeraldprinter",
category = "Money Printers",
allowed = {TEAM_HITMAN, TEAM_MAFIA, TEAM_CITIZEN, TEAM_GUNDEALER, TEAM_BLACK, TEAM_THIEF, TEAM_GODFATHER}
})

Any help would be great.

Thanks
Editat ultima dată de basel; 23 febr. 2019 la 7:15