admin and vip

-snip

Did you create a group in settings>users.txt? I wish I could you more but I don’t know much about this type of stuff.

[lua]if v.ent == “vip_money_printer” and !ply:IsUserGroup(“vip”) and !ply:IsAdmin() then
Notify(ply, 1, 4, “You must be VIP or admin to buy this!”)
return “”
end[/lua]
?

yea

It should be

[lua]if v.ent == “vip_money_printer” and !ply:IsUserGroup(“vip”) or !ply:IsAdmin() then
Notify(ply, 1, 4, “You must be VIP or admin to buy this!”)
return “”
end[/lua]

Because the previous code meant that the player has to be both usergroups.

Why don’t you use ULX to inherit from

Moderator -> VIP and vip -> User

and use this code

[lua]if v.ent == “vip_money_printer” and not ply:CheckGroup( “vip” ) then
Notify(ply, 1, 4, “You must be VIP or admin to buy this!”)
return “”
end[/lua]