# GM:PlayerSetHandsModel

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/GM:PlayerSetHandsModel
- **Çeviri tarihi:** 2025-09-08

```lua
GM:PlayerSetHandsModel( Player ply, Entity ent )
```

## Açıklama

Görünüm modeli (view model) elleri için bir model ayarlanması gerektiğinde çağrılır. Varsayılan olarak bu, [PLAYER:GetHandsModel](https://gmod.tr/wiki/PLAYER:GetHandsModel) fonksiyonunu çağırır ve eğer bu başarısız olursa, el modelini oyuncunun kendi oyuncu modeline göre ayarlar.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **ply**: Elleri için bir model ayarlanması gereken oyuncu
2. [Entity](https://gmod.tr/wiki/Entity) **ent**: Modeli ayarlanacak olan eller

### Örnek

Oyuncunun ellerini, kendi oyuncu modelinin ellerine ayarlar.

```lua
function GM:PlayerSetHandsModel( ply, ent )
   local simplemodel = player_manager.TranslateToPlayerModelName(ply:GetModel())
   local info = player_manager.TranslatePlayerHands(simplemodel)
   if info then
      ent:SetModel(info.model)
      ent:SetSkin(info.skin)
      ent:SetBodyGroups(info.body)
   end
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/GM:PlayerSetHandsModel
