# Player:GetAmmo

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

```lua
table Player:GetAmmo()
```

## Açıklama

Oyuncunun sahip olduğu tüm mühimmatı içeren bir tablo döndürür.

## Döndürdükleri

1. [table](https://gmod.tr/wiki/table): Aşağıdaki formata sahip bir tablo - [number](https://gmod.tr/wiki/number) Anahtar - [game.GetAmmoName](https://gmod.tr/wiki/game.GetAmmoName) gibi fonksiyonlarla kullanılacak Mühimmat ID'si (AmmoID). - [number](https://gmod.tr/wiki/number) Değer - Oyuncunun bu türden sahip olduğu mühimmat miktarı.

### Örnek

Varsayılan Sandbox silah donanımının mühimmat tablosunu yazdırır.

```lua
PrintTable( Entity( 1 ):GetAmmo() )
```

**Çıktı:**

```lua
1	=	130
2	=	6
3	=	256
4	=	256
5	=	32
6	=	36
7	=	64
8	=	3
10	=	6
```

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