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 )

Page Links


Special Pages


Wikis

?

Render Time: 53ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 32
Render Body 0
Render Sidebar 12