• Pointshop models Not allowed
    12 replies, posted
So i spent a good hour or so with one of my players trying to figure this out, and eventually gave up. When i add a new player model to the shop, ALL player models are suddenly restricted to superadmin. So when anyone, even admin tries to buy a model it'll say "You're not allowed to buy this item!" When i remove the .lua file from pmodels folder, it works fine. Adding a basic skin, batman.Works for me, un-buyable for others Batman.lua(Pointshop) [lua] --// File Generated By Fox-Warrior's Resources Generator Version 2.05 \\-- if (SERVER) then resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.dx80.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.dx90.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.phy" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.sw.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.vvd" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.xbox.vtx" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_belt.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_blades.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_bump.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_exp.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_eyes.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_latex.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_pockets.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_skin.vmt" ) end ITEM.Name = 'Batman' ITEM.Price = 200 ITEM.Model = 'models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl' 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 [/lua] I've got all the files and everything, textures downloads work fine.Everyone can see the model, just not buy it. heres my __category.lua [lua] CATEGORY.Name = 'Player Models' CATEGORY.Icon = 'user' CATEGORY.AllowedEquipped = 1 CATEGORY.Desc = "Player models!" CATEGORY.BackgroundColor = Color( 255, 169, 23, 255 ) [/lua] Really annoying, would appreciate help. EDIT: I forgot to mention, when all player models get restricted, everything else works fine My weapons, hats, accessories, ammo, etc.
Can you post the code for one of the models?
[QUOTE=code_gs;42954440]Can you post the code for one of the models?[/QUOTE] [lua] //Batman ---batman list.Set( "PlayerOptionsModel", "batman", "models/Batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl" ) player_manager.AddValidModel( "batman", "models/Batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl" ) [/lua] Not much to see.
No, the pointshop code.
[QUOTE=code_gs;42954455]No, the pointshop code.[/QUOTE] its in the first post? Batman.lua [lua] --// File Generated By Fox-Warrior's Resources Generator Version 2.05 \\-- if (SERVER) then resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.dx80.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.dx90.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.phy" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.sw.vtx" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.vvd" ) resource.AddFile( "models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.xbox.vtx" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_belt.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_blades.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_bump.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_exp.vtf" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_eyes.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_latex.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_pockets.vmt" ) resource.AddFile( "materials/models/batman/slow/jamis/mkvsdcu/batman/slow_batman_skin.vmt" ) end ITEM.Name = 'Batman' ITEM.Price = 200 ITEM.Model = 'models/batman/slow/jamis/mkvsdcu/batman/slow_pub_v2.mdl' 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 [/lua]
Oh, you merged your FastDL and pointshop into one file. Try putting ITEM.AllowedUserGroups = { "admin", "vip" } in your code, but list out all the groups.
[QUOTE=code_gs;42954502]Oh, you merged your FastDL and pointshop into one file. Try putting ITEM.AllowedUserGroups = { "admin", "vip" } in your code, but list out all the groups.[/QUOTE] List out all groups? ITEM.AllowedUserGroups = { "" } Like that or something?I tried actually doing that before but with groups, and it didnt work
No, list out user, admin, superadmin
[QUOTE=code_gs;42954716]No, list out user, admin, superadmin[/QUOTE] Still says im not allowed as a regular user
Interestingly, CATEGORY.Desc is not part of pointshop, but is from [url]http://coderhire.com/scripts/view/476[/url], which you haven't bought. Banned on CH.
[QUOTE=_Undefined;42955393]Interestingly, CATEGORY.Desc is not part of pointshop, but is from [url]http://coderhire.com/scripts/view/476[/url], which you haven't bought. Banned on CH.[/QUOTE] On Topic: Sad that people get banned for just having the simple code of "CATEGORY.Desc" from Kamshak's Modern Pointshop.. Off Topic: Lol the assumptions from Undefined now adays... O the leaks on leakforums are so great aren't they? ^.^
and I just hoped for a solution to this problem because its not working for me either and I can't find a solution :,(
You don't need to add all files of model Read here: resource.AddFile
Sorry, you need to Log In to post a reply to this thread.