Scripting/Server/Functions/player.SetClothingColour

Tints a slot (also SetClothingColor). On an item the colour is multiplied with it (a white shirt turns red); without an item the model's own pixels are recoloured and keep their shading - that is how hair and skin colour work. null removes the tint.

Syntax

player.SetClothingColour(slot, Colour)
(slot, r, g, b)
(slot, 0xRRGGBB)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setclothingcolour" )
	{
		player.SetClothingColour( 0, true );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Ped clothing (v0.3.3)

Categories: Server functions | Ped clothing (v0.3.3)