# Entity:GetBodygroupName

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

```lua
string Entity:GetBodygroupName( number bodyGroupId )
```

## Açıklama

[Entity](https://gmod.tr/wiki/Entity)'nin modelindeki belirli bir [Gövde Grubu ID](https://gmod.tr/wiki/Structures/BodyGroupData#id)'sine karşılık gelen Gövde Grubu'nun adını alır.

> **NOT:** Silahlar, kendi görüş modellerinden (viewmodels) sonuçlar döndürecektir.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **bodyGroupId**: Adı alınacak olan Gövde Grubu ID'si.

## Döndürülen Değerler

1. [string](https://gmod.tr/wiki/string): Gövde Grubu'nun adı.

### Örnek

Bu fonksiyonun kullanımını gösterir.

```lua
print( Entity( 1 ):GetEyeTrace().Entity:GetBodygroupName( 1 ) )
```

**Çıktı:** Eğer 1 numaralı oyuncu airboat'a (deniz teknesi) nişan alıyorsa, konsolda "Weapon" çıktısı alınır.

- [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/Entity:GetBodygroupName
