ULX

Author Topic: How to add VIP section to pointshop?  (Read 3291 times)

0 Members and 1 Guest are viewing this topic.

Offline SexyWalrus

  • Newbie
  • *
  • Posts: 19
  • Karma: -3
How to add VIP section to pointshop?
« on: January 25, 2015, 01:15:15 AM »
I added this Pointshop (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

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to add VIP section to pointshop?
« Reply #1 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming