I've been trying for a bit to be able to set a color modifier for certain items (being able to color items through the pointshops mixer) and I don't even know where to start since there are multiple formats.
If anyone knows the code or an example of it, please put it down the comments.
There are official examples how to do this.
.. Well, for the trails. But it should be pretty much the same with other items:
[CODE]function ITEM:Modify(modifications)
PS:ShowColorChooser(self, modifications)
end[/CODE]
[CODE]function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetColor(modifications.color)
return model, pos, ang
end[/CODE]
Have not tested it, so it may or may not work properly.
Sorry, you need to Log In to post a reply to this thread.