Garry's Mod Wiki

Player:GetWeaponColor

Player:GetWeaponColor

Vector Player:GetWeaponColor()

Description

Returns a player's weapon 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 weapon color, and prints it to console

print( Entity( 1 ):GetWeaponColor() )
Output: Vector( 1, 1, 1 )

Special Pages


Wikis

?

Render Time: 62ms

DB GetPage 44
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 8