# player\_info

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

## Açıklama

Bir oyuncunun bilgileri ağ üzerinden değiştiğinde çağrılır.
Bir İstemci Sunucuya katıldığında, bu oyun olayı (gameevent) istemci için sunucudaki her oyuncu için çağrılır.
Yani Sunucuda 32 Oyuncu varsa, bu oyun olayı İstemcide 32 kez çağrılır.

## Üyeler

- [number](https://gmod.tr/wiki/number) **friendsid**

  Oyuncunun [Player:AccountID](https://gmod.tr/wiki/Player:AccountID)'si.

- [number](https://gmod.tr/wiki/number) **index**

  Oyuncunun [EntIndex](https://gmod.tr/wiki/Entity.EntIndex)'inin bir eksiği.

- [number](https://gmod.tr/wiki/number) **bot**

  Oyuncunun bot olup olmadığını belirtir (1 veya 0).

- [number](https://gmod.tr/wiki/number) **userid**

  Oyuncunun [UserID](https://gmod.tr/wiki/Player:UserID)'si.

- [string](https://gmod.tr/wiki/string) **name**

  Oyuncunun [Name](https://gmod.tr/wiki/Player.Name)'i (adı).

- [string](https://gmod.tr/wiki/string) **networkid**

  Oyuncunun [SteamID](https://gmod.tr/wiki/Player:SteamID)'si.

## Örnekler

### Örnek

Bu, hangi değerlere erişilebileceğini kolayca anlaşılır kılmak için tüm argümanları / tablo değişkenlerini dahil etme amacına sahip temel bir şablondur.

```lua
gameevent.Listen( "player_info" )
hook.Add( "player_info", "player_info_example", function( data )
	local name = data.name				// Player:Nick() ile aynı
	local steamid = data.networkid		// Player:SteamID() ile aynı
	local id = data.userid				// Player:UserID() ile aynı
	local bot = data.bot				// Player:IsBot() ile aynı
	local index = data.index   			// Entity:EntIndex()'in bir eksiği
	local friendsid = data.friendsid	// Player:AccountID() ile aynı

	// Oyuncu bağlandı; bu, katıldıktan hemen sonra gerçekleşir -- bir şeyler yapın..

end )
```

- [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/gameevent/player_info
