Hi, as you can probably see, I'm new to these forums and I just joined today.
I came here because this is the site of ULX and the problem I'm having is related to ULX Groups.
Whenever I restrict a printer (DarkRP Printer) to only show up in the buy menu if you match the ulx group, it works and doesn't work, I've tried many custom checks, and when it doesn't work, all printers don't show up, when it does work, the ranks that can only see it, are not able to spawn it in, they'll buy it, it'll use their money, but no printer spawns.
When I take the custom check out entirely, anybody can buy the printer, and it DOES spawn.
Here's the file I'm struggling with, how do I make it only show up in the menu to specific ranks, and still spawn when that specific rank buys the printer?
sh_init.lua
DarkRP.createEntity("VIP Money Printer", {
ent = "vip_money_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 25000,
max = 2,
cmd = "buyvipmoneyprinter"
Here's one of the MANY things that I've tried:
customCheck = function(ply) return CLIENT or
table.HasValue({VIP, VIP+, admin, superadmin, Owner}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "This is VIP only!"
But, like I've said, when the check works right, the printer never spawns upon purchase, I'm stuck here, any help is appreciated!