Revision Difference
Player:GetPlayerColor#515858
<function name="GetPlayerColor" parent="Player" type="classfunc">
<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. The format is Vector(r,g,b), and each color should be between 0 and 1.</description>
<realm>Shared</realm>
<rets>
<ret name="" type="Vector">color</ret>
</rets>
</function>
⤶
<example>⤶
<description>Gets player 1's model color, and prints it to console</description>⤶
<code>print( player.GetByID( 1 ):GetPlayerColor() )</code>⤶
<output>Vector( 1, 1, 1 )</output>⤶
⤶
</example>⤶
{{Example⤶
| Description = Gets player 1's model color, and prints it to console⤶
| Code = print( player.GetByID( 1 ):GetPlayerColor() )⤶
| Output = Vector( 1, 1, 1 )⤶
}}