# Entity:GetNWVarProxy

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

```lua
function Entity:GetNWVarProxy( string key )
```

## Açıklama

Bu varlığın, daha önce [Entity:SetNWVarProxy](https://gmod.tr/wiki/Entity:SetNWVarProxy) ile ayarlanmış olan belirtilen NWVar'ı için geri çağırma (callback) fonksiyonunu döndürür.

> **KALDIRILDI:** Bu fonksiyonun yerini [Entity:GetNW2VarProxy](https://gmod.tr/wiki/Entity:GetNW2VarProxy) almıştır. Bu sayfa, eski kodlarla karşılaşan ve ne olduğunu bilmesi gereken biri olursa diye arşiv olarak hala mevcuttur

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **key**: Geri çağırma fonksiyonu alınacak NWVar'ın anahtarı.

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

1. [function](https://gmod.tr/wiki/function): Belirtilen NWVar'ın geri çağırma fonksiyonu, bulunamazsa nil. Fonksiyon argüman(lar)ı: 1. [Entity](https://gmod.tr/wiki/Entity) **ent** - Varlık 2. [string](https://gmod.tr/wiki/string) **name** - Değişen NWVar'ın adı 3. [any](https://gmod.tr/wiki/any) **oldval** - Eski değer 4. [any](https://gmod.tr/wiki/any) **newval** - Yeni değer

### Örnek

1. Oyuncunun "Key" adlı NWVar'ının geri çağırma fonksiyonunu yazdırır.

```lua
print( Entity(1):GetNWVarProxy( "Key" ) )
Entity(1):SetNWVarProxy( "Key", print )
print( Entity(1):GetNWVarProxy( "Key" ) )
```

**Çıktı:**

```lua
nil
function: builtin#25
```

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