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.

function GM:PlayerSpawn( ply ) ply:SetWeaponColor( Vector(1,0,0) ) end

Page Links


Special Pages


Wikis

?

Render Time: 39ms

Session 0
DB GetPage 5
Generate Html 3
SaveChanges 16
Render Body 0
Render Sidebar 12