Pointshop lua color modification

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:


function ITEM:Modify(modifications)
	PS:ShowColorChooser(self, modifications)
end


function ITEM:ModifyClientsideModel(ply, model, pos, ang)
	model:SetColor(modifications.color)

	return model, pos, ang
end

Have not tested it, so it may or may not work properly.