Garry's Mod Wiki

Garry's Mod Wiki

  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

Output: Vector( 1, 1, 1 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...