• PointShop Weapon help!
    4 replies, posted
Hey Guys! Quick help. i would like to know the format of the file you add to the pointshop [code]ITEM.Name = 'Kleiner' ITEM.Price = 250 ITEM.Model = 'models/player/kleiner.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] Just need really quick help. Thank you! JewishZebra
(item name).lua That's the file format needed
^^ LOL. do i have to edit anything, such as for hats you have to put the position. would i just put my weapon? Eg [code]ITEM.Name = 'Example Weapon' ITEM.Price = 69696969 ITEM.Model = 'models/player/example_weapon.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
Just use the items/weapons templates, it's all there for you, there was absolutely no reason for you to come here.
^^ i deleted them but you gave me a idea that solved it ;) bye
Sorry, you need to Log In to post a reply to this thread.