# Player:SetWeaponColor

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

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

## Açıklama

Oyuncunun silah 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 0 ile 1 arasında olmalıdır.

### Örnek

Bir oyuncu doğduğunda, silahının rengi kırmızı olacaktır.

```lua
hook.Add("PlayerSpawn", "SpawnSetColor", function( ply )
	ply:SetWeaponColor( Vector( 1, 0, 0 ) )
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:SetWeaponColor
