# Player:GetCount

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

```lua
number Player:GetCount( string type, number minus = 0 )
```

## Açıklama

> **NOT:** Bu fonksiyon yalnızca Sandbox ve türevlerinde kullanılabilir.

[Player:AddCount](https://gmod.tr/wiki/Player:AddCount) tarafından eklenen bir varlık türünün toplam sayısını alır.

Varsayılan türler:

```lua
balloons
buttons
cameras
dynamite
effects
emitters
hoverballs
lamps
lights
npcs
props
ragdolls
sents
thrusters
vehicles
wheels
```

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **type**: Varlık sayısının alınacağı tür.
2. [number](https://gmod.tr/wiki/number) **minus** = 0: Eğer belirtilirse, sayacı bu değer kadar azaltır. Sadece sunucu tarafında çalışır.

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

1. [number](https://gmod.tr/wiki/number) **count**: Döndürülen sayı.

### Örnek

```lua
print( Entity(1):GetCount("props") )
```

- [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:GetCount
