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: 25ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 7