Garry's Mod Wiki

Entity:SetColor4Part

  Entity:SetColor4Part( number r, number g, number b, number a )

Description

Sets the color of an entity without usage of a Color object.

Used internally to implement Entity:SetColor.

Arguments

1 number r
2 number g
3 number b
4 number a

Example

Sets the color of the first player to black

Entity(1):SetColor4Part(0, 0, 0, 0)