Ulysses

General => Developers Corner => Topic started by: SexyWalrus on January 25, 2015, 01:15:15 AM

Title: How to add VIP section to pointshop?
Post by: SexyWalrus on January 25, 2015, 01:15:15 AM
I added this Pointshop (http://pointshop.burt0n.net (http://pointshop.burt0n.net)) to my server and made a VIP tab but i dont know how to make it so i can restrict access for people in custom groups made by the ulx admin mod. Help?

This is what i have in the groups __category.lua
CATEGORY.Name = 'VIP'
CATEGORY.Icon = 'award_star_gold_3'
CATEGORY.AllowUserGroups = { "admin", "VIP", "Owner", "Mod", "HeadAdmin" }
CATEGORY.Order = 5
CATEGORY.AllowedEquipped = 2
Title: Re: How to add VIP section to pointshop?
Post by: JamminR on January 25, 2015, 06:14:22 AM
CATEGORY.AllowUserGroups = { "admin", "VIP", "Owner", "Mod", "HeadAdmin" }
Seems obvious. Lua is case sensitive though.
Make sure your groups are typed out there exactly like they are in your Gmod groups.
VIP is not the same as Vip is not the same as vip is not the same as vIp.

If that doesn't work for you, then it's beyond what I know of pointshop.
There are other pointshop discussions in this forum section that might help.
Type the word pointshop in the search box at the index page of Dev corner, it will only search dev corner.