# player.GetByID

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

```lua
Player veya NULL player.GetByID( number connectionID )
```

## Açıklama

Belirtilen bağlantı ID'sine sahip oyuncuyu alır.

Bağlantı ID'si, [gameevent.Listen](https://gmod.tr/wiki/gameevent.Listen) olayları aracılığıyla alınabilir.

Bir oyuncuyu [Entity:EntIndex](https://gmod.tr/wiki/Entity.EntIndex)'ine göre döndüren bir fonksiyon için [Entity](https://gmod.tr/wiki/Global.Entity)'e bakın.

Bir oyuncuyu [Player:UserID](https://gmod.tr/wiki/Player:UserID)'sine göre döndüren bir fonksiyon için [Player](https://gmod.tr/wiki/Global.Player)'a bakın.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **connectionID**: Oyuncuyu bulmak için kullanılacak bağlantı ID'si.

## Döndürülenler

1. [Player](https://gmod.tr/wiki/Player) veya [NULL](https://gmod.tr/wiki/null): Eğer bir oyuncu bulunursa oyuncu, aksi takdirde `NULL`.

- [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.GetByID
