Garry's Mod Wiki

DProperty_VectorColor:SetValue

  DProperty_VectorColor:SetValue( Vector color )

Description

Sets the color value of the property.

Arguments

1 Vector color
Sets the color to use in a DProperty_VectorColor.

Example

Setup a color selection control with a custom default color.

local color = DP:CreateRow( "Category", "Select Color" ) color:Setup( "VectorColor", {} ) color:SetValue( Vector( 0.39, 1, 1 ) )