• PointShop not adding items...
    4 replies, posted
addons\pointshop-master\lua\pointshop\items\playermodels this is where I'm adding the LUA files. The first time I tried adding models they all worked but one... I did it the exact same way. This is an example of the item.lua for one skin that works; [CODE]ITEM.Name = 'Medic' ITEM.Price = 5000 ITEM.Model = 'models/player/medicplayer/medic.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 function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end [/CODE] And this is an example of one that's not working; [CODE] ITEM.Name = 'Arnold Schwarzenegger' ITEM.Price = 7500 ITEM.Model = 'models/player/arnold_schwarzenegger.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 function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end [/CODE] So as you can see it should be working. (there's about 20 other skins that don't work and only about 5 that do) I'm assuming it's picking up the .mdl files just it's not showing the items in the PointShop and I'm really confused on why... Like it doesn't even make sense since they're the same code besides the model dir, the item name and item price. Any help would be much appreciated :).
Yeah and I'm assuming so (it is hooked up to it) and yeah, all in the correct folder.
What are the exact lua files names? Make sure that you are not using any capital letters in the file name (This is a common mistake)
[QUOTE=JasonMan34;45594478]What are the exact lua files names? Make sure that you are not using any capital letters in the file name (This is a common mistake)[/QUOTE] I have never heard of an issue with capitals in the name. Possibly on Linux? But other than that I can not vouch for this.
Sorry, you need to Log In to post a reply to this thread.