Garry's Mod Wiki

Player:SetWeaponColor

  Player:SetWeaponColor( Vector Color )

Description

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

Arguments

1 Vector Color
This is the color to be set. The format is Vector(r,g,b), and each color should be between 0 and 1.

Example

When a player spawns their weapon's color will be red.

hook.Add("PlayerSpawn", "SpawnSetColor", function( ply ) ply:SetWeaponColor( Vector( 1, 0, 0 ) ) end )