Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEM.Name = 'Player Paint'
- ITEM.Price = 0
- ITEM.Model = 'models/props_junk/metal_paintcan001a.mdl'
- ITEM.Attachment = 'eyes'
- ITEM.AllowedUserGroups = { "superadmin", "admin", "vip" }
- function ITEM:OnEquip(ply, modifications)
- if modifications.color ~= nil then
- newcolor = modifications.color
- ply:SetPlayerColor(Vector( newcolor.r / 255, newcolor.g / 255, newcolor.b / 255))
- end
- end
- function ITEM:OnHolster(ply)
- local colDefault = Color(255,255,255,255)
- ply:SetColor(colDefault)
- end
- function ITEM:Modify(modifications)
- PS:ShowColorChooser(self, modifications)
- end
- function ITEM:OnModify(ply, modifications)
- self:OnHolster(ply)
- self:OnEquip(ply, modifications) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement