Garry's Mod Wiki

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. The format is Vector(r,g,b), and each color should be between 0 and 1.

Returns

1 Vector
color

Example

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

print( player.GetByID( 1 ):GetPlayerColor() )
Output: Vector( 1, 1, 1 )

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 12