# Entity:GetMaxHealth

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

```lua
number Entity:GetMaxHealth()
```

## Açıklama

Entity'ye verilen maksimum can değerini döndürür. Bu değer [Entity:SetMaxHealth](https://gmod.tr/wiki/Entity:SetMaxHealth) ile ayarlanabilir.

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

1. [number](https://gmod.tr/wiki/number): Maksimum can.

### Örnek

1 numaralı oyuncu için ayarlanmış maksimum can değerini yazdırır.

```lua
print( Entity( 1 ):GetMaxHealth() )
```

**Çıktı:** Varsayılan olarak 100'dü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:GetMaxHealth
