Garry's Mod Wiki

Garry's Mod Wiki

  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 )

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 twice a day. Edits and history are not available.

Last Parsed: Loading...