[Pointshop] Playermodel Color

Hey, i tried to add a item to the pointshop that would color the player in specified colors.
Once the player buys the item, the playermodel colors to pink, whatever color they buy. Thats the code

ITEM.Name = 'Color Blue'
ITEM.Price = 500
ITEM.Model = ("models/weapons/w_medkit.mdl")

function ITEM:OnEquip(ply, modifications)

Yes i know its a nooby code, but it was the easiest i could think of.
Any idea why the player turns pink instead of Blue?

One thing I remember reading is that when SetColor fails, it defaults to that color

so what should i use instead of SetColor

http://wiki.garrysmod.com/page/Player/SetPlayerColor possibly?

Thats for Red,Green and blue and mixes of these colors only, right?

[editline]4th January 2014[/editline]

aaah yeah i see how it works. But i would like the whole model to be colored, not only the default colorable parts of the model :l

Is this TTT by any chance?


Make sure TTT isn’t doing this silly stuff.

i guess i should place

ttt_playercolor_mode 0

in the cfg right :P?


Well this didnt work :L

If you want to color the entire player, you’ll probably want this: http://wiki.garrysmod.com/page/Entity/SetColor

i did that.
The player went all pink, thats the problem i have

What do you mean all pink? You mean like missing textures?

I think that what happens when you put numbers into SetColor instead of a Color(255,0,0) objectt.