• Need some help
    1 replies, posted
Hi, i'm basicly new to having a server and stuff on gmod. I have some issues, would love some help. Okay first off, rank chat tags.. I tried to download an addon that would do it but it's not really working. Any other options? 2nd, i'm using ULX admin system and i have made a new VIP group. On the pointshop i have made a VIP playermodels tab so those playermodels are only available for the VIPs. BUT. I copied the code from the headcrab since that is admin only and i renamed the admin to vip only. My code for the vip playermodel now looks like this: [CODE]ITEM.Name = 'Deadpool' ITEM.Price = 1250 ITEM.Model = 'models/apocmodels/Deadpool/deadpoolplayerclassicupdated.mdl' ITEM.vipOnly = true 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 [/CODE] but regular "users" can buy it too so that's not really working out. Also, i'm the only one to be able to see this playermodel. Others can't. How do i fix this? I have the playermodel in the addons. 3rd, im looking for the jukebox addon that allot servers have but i can't seem to find it :) Could anyone send me a link to it?
To only allow certain user groups to buy an item in Pointshop use this [lua]ITEM.AllowedUserGroups = { "admin", "vip" }[/lua] Separate the usergroups with commas If you need any more help with pointshop items be sure to look it up [url=https://github.com/adamdburton/pointshop/wiki/Items]here[/url] first
Sorry, you need to Log In to post a reply to this thread.