Closed dsgassassin closed 8 years ago
You've added a random custom check in the middle of the file, that's not even how it's done in DarkRP
https://github.com/vrondakis/Leveling-System/issues/38
You need to use Printer.CustomCheck
I just tried that and no luck, everyone can still spawn those printers, any ideas?
--Not a bug report, 'tried that and no luck' doesn't help
Printer.CustomCheck
or #38
Printer.CanBuy
You suggested two different ways of doing this, both of which don't work and don't spit any errors at you, the only information I can give you is that it DOESN'T work.
I added Printer.DParams, so you can add whatever you want to the default DarkRP item table
example:
local Printer = {}
Printer.Name = 'Whatever'
...
Printer.DParams = {
ent = 'yourcustomentity',
sortOrder = 100,
customCheck = function(ply) return ply:GetUserGroup() == "donator" end,
CustomCheckFailMsg = function(ply, entTable) return "You need to be a donator to buy this entity!" end
}
table.insert(Printers,Printer)
which will override the default settings in this system
Hi,
I know this question has been "answered" before, but the answer is of little use, I've tried several different ways of restricting printers to certain ranks, but to no avail, I was wondering if you could help?
That custom check doesnt work... Can you tell me a WORKING way to do this? Thanks