PointShop Admin Category

Is there a way to make a whole category restricted by rank, as opposed to each item be admin only?

I am assuming you are referring to the undefined pointshop?
That link should tell you what you need.

Didn’t work.

[editline]26th August 2013[/editline]

CATEGORY.Name = ‘V.I.P.’
CATEGORY.Icon = ‘emoticon_shield’
CATEGORY.AllowedEquipped = 2
CATEGORY.AllowedUserGroups = { “admin”, “vip”, “superadmin”, “srv_owner” }

Bump

[lua]
CATEGORY.Name = “V.I.P.”
CATEGORY.Icon = “money”
CATEGORY.AllowedEquipped = 2
CATEGORY.AllowedUserGroups = { “admin”, “vip”, “superadmin”, “srv_owner” }

function CATEGORY:CanPlayerSee(ply)
return true – You can mess around here, if you return true the players of that group can see the tab
end
[/lua]

Is this in the same location as all of the other pointshop category files? What are you titling the file?

_category.lua, yes the same location.

addon/pointshop/lua/items/“VIP folder”/_category.lua

What is the problem, there is no tab showing up in the shop?
Did you reconnect to the server or change the map?

Tap not showing up in shop. I rebooted more than once.

can you copy and paste the whole category file wrapped using [lua ) and [/lua ) replace ) with ]
and also copy the file path.

[lua]
CATEGORY.Name = ‘V.I.P.’
CATEGORY.Icon = ‘shield’
CATEGORY.AllowedEquipped = 2
CATEGORY.AllowedUserGroups = { “admin”, “vip”, “superadmin”, “srv_owner” }
[/lua]

pointshop/lua/items/vip/_category.lua

rename it to __category.lua

Works fine for me.

It is named __category, my bad.

Bump

One underscore?

[editline]26th August 2013[/editline]

If not try that.

Didn’t help.

Post a picture of your folder where _catagory.lua is located.

http://puu.sh/4bUWp.png

Ignore the /poop/, I put it in a separate folder so it wouldn’t be loaded into the game.

If you don’t load the addon how do you expect it to work?

Anyways, here is what our donator tab looks like… Basically the same as what you are asking

And the actual code…
[lua]
CATEGORY.Name = ‘Donor Items’
CATEGORY.Icon = ‘bomb’
CATEGORY.Order = -2
[/lua]

Could me usergroups not be registering? I use Exsto.

We use ulx, so that may be possible.