# Player:SetPlayerColor

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Player:SetPlayerColor
- **Çeviri tarihi:** 2025-09-08

```lua
Player:SetPlayerColor( Vector Color )
```

## Açıklama

Oyuncu modelinin rengini ayarlar. Modelin renklendirilen kısmı modelin kendisi tarafından belirlenir ve her model için farklıdır.

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **Color**: Ayarlanacak renktir. Format Vector(r, g, b) şeklindedir ve her bir renk değeri 0 ile 1 arasında olmalıdır.

### Örnek

Bir oyuncu doğduğunda (spawn) rengi kırmızı olacaktır.

```lua
hook.Add( "PlayerSpawn", "PlayerColor", function( ply )
	ply:SetPlayerColor( Vector( 1, 0, 0 ) )
end)
```

### Örnek

Oyuncunun rengini bir [Vector](https://gmod.tr/wiki/Vector) yerine bir [Color](https://gmod.tr/wiki/Global.Color) ile ayarlamak için kullanabileceğiniz bir fonksiyon.

```lua
function SetColor( ply, color )
	ply:SetPlayerColor( Vector( color.r / 255, color.g / 255, color.b / 255 ) )
end
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Player:SetPlayerColor
