how to add a new tab to the pointshop?

hey guys so i rented a new server via online hosting, i am trying to add a vip tab and make it accessible by only vip’s and i dont know how
can some one help me?
thanks!

under items, create a new folder and name it whatever you want.

Then copy, paste, and modify a _category.lua to the folder.

[quote=“BFG9000, post:2, topic:146656”]

did that didnt work.
any other way?

BFG9000 told you how to do it. Post your _category.lua contents.

Hi,
The way to do it is as described earlier. Make a new folder in lua\items, then copy and paste a _category.lua into it. Open up the _catergory.lua in whatever you use to edit lua.
It should say something like this;


CATEGORY.Name = 'Accessories'
CATEGORY.Icon = 'add'


Just change the CATEGORY.Name to whatever you like.
You can change the icon if you like.
Thanks
-Bakht

You can also set max equippable from this file, with
CATEGORY.AllowedEquipped = 2 if you want a maximum of two to be worn.

Full list can be found:

still not working, here is my lua code
CATEGORY.Name = “VIP”
CATEGORY.Icon = ‘add’
CATEGORY.AllowedEquipped = 2
CATEGORY.AllowedUserGroups = { “admin”, “vip” }

what is the name of the file and where did you put it

Make sure your __category.lua has 2 underscores. Had this problem once and this fixed it.

[editline]10th December 2013[/editline]

What rank are you? If you’re not admin or vip, You will not be able to see the group. Make sure you add your group. For example lets say your rank name is “owner” then you would set
CATEGORY.AllowedUserGroups = { “admin”, “vip”, “owner” }

Also 1 last thing, You should stick to keeping everything in lower case. Its easier to manage and a hell of a lot easier to code with.

Try adding an item to the tab, that may make it appear. I’m just guessing though?

even with no items it should still appear

[lua]
CATEGORY.Name = ‘VIP’
CATEGORY.Icon = ‘add’
CATEGORY.AllowedEquipped = 2
CATEGORY.AllowedUserGroups = { “admin”, “vip” }
[/lua]

fixd

did you put it IN the VIP folder?

[editline]10th December 2013[/editline]

what’s different?

Make the folder name lowercase. Linux, which I’m assuming this is being ran on, has issues with capitals. Also, seems like an obvious question, but you have restarted your server after adding the new category, correct?

i manage to make the vip tab thanks to you guys, but i wanna know how to put models and make a vip system

This is a playermodel Item I use for VIP:

ITEM.Name = ‘Harley Quinn’
ITEM.Price = 1500
ITEM.Model = ‘Models/jessev92/harley_quinn_aa_ply.mdl’
ITEM.AllowedUserGroups = { “VIP”, “globalvip”, “operator”, “moderator”, “admin”, “superadmin”, “owner” }

function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end

timer.Simple(1, function() ply:SetModel(self.Model) end)

end

function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end

function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end


The line:
ITEM.AllowedUserGroups = { “VIP”, “globalvip”, “operator”, “moderator”, “admin”, “superadmin”, “owner” }
can be adjusted to fit your groups. make sure the group name matches exactly what you have in ULX (assuming thats what you use).
Also make sure you edit the ITEM.model line correctly and make sure the file path is correct.

It was kind of you to help them, but do quickly check the thread date before posting, as this is from last December!