Garry's Mod Wiki

Player:GetPlayerColor

  Vector Player:GetPlayerColor()

Description

Returns a player model's color. The part of the model that is colored is determined by the model itself, and is different for each model.

Overide this function clientside on a Entity(not a player) with playermodel and return color will apply color on it

Returns

1 Vector
The format is Vector(r,g,b), and each color component should be between 0 and 1.

Example

Gets player 1's model color, and prints it to console

Output:
Vector( 1, 1, 1 )