Hi! I wanted to add the “Payday 2 Masks” to my Pointshop in Garry’s Mod.
But I do not know where I should put the pointshop lua file. Does it go in “headshatsmasks” or “accessories”. I think it should go to headshatmasks but I dunno how to make the pointshop.lua file.
Because for example the Snowman Head’s code is like this:
ITEM.Name = 'Snowman Head' ITEM.Price = 200 ITEM.Model = 'models/props/cs_office/Snowman_face.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) pos = pos + (ang:Forward() * -2.2) ang:RotateAroundAxis(ang:Up(), -90) return model, pos, ang end function ITEM:CanPlayerBuy(ply) return os.date("%m") == "12" and true or false, 'It\'s not winter!' end
I tried this… But it just gave me lua errors when I tried to join the server. (I removed the Winter thingy btw). Can anyone help me?