# Entity:GetNW2VarProxy

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

```lua
function Entity:GetNW2VarProxy( any key )
```

## Açıklama

Bu varlığın belirtilen NWVar'ı için geri arama (callback) fonksiyonunu döndürür.

## Argümanlar

1. [any](https://gmod.tr/wiki/any) **key**: Geri arama (callback) fonksiyonu alınacak olan NWVar'ın anahtarı.

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

1. [function](https://gmod.tr/wiki/function): Belirtilen NWVar'ın geri arama fonksiyonu, bulunamazsa nil döndürür. 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 NW2Var'ı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 arama (callback) fonksiyonunu yazdırır.

```lua
print( Entity(1):GetNW2VarProxy( "Key" ) )
Entity(1):SetNW2VarProxy( "Key", print )
print( Entity(1):GetNW2VarProxy( "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:GetNW2VarProxy
