# saverestore.AddRestoreHook

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/saverestore.AddRestoreHook
- **Çeviri tarihi:** 2026-08-05

```lua
saverestore.AddRestoreHook( string identifier, function callback )
```

## Açıklama

Half-Life 2 kurtarma sistemi için bir restore/load hook ekliyor.

## Argümanlar

1.. [dizgin](https://gmod.tr/wiki/string) **tanımlayıcı**: Bu kanca için benzersiz bir tanımlayıcı.
2.. [fonksiyon](https://gmod.tr/wiki/function) **Geri çağrı**: Bir motor kurtarma yüklendiğinde function to çağrılır. Fonksiyon argümanları: 1.. [Dönüştür.](https://gmod.tr/wiki/IRestore) **Kurtar.** - Kaydedilen kaydetme dosyasından verileri okumak için kullanılacak restore nesnesi. Bu fonksiyonları verileri okumak için de kullanabilirsiniz: - [saverestore. ReadVar](https://gmod.tr/wiki/saverestore.ReadVar) - [saverestore. ReadTable](https://gmod.tr/wiki/saverestore.ReadTable) - [saverestore. LoadEntity](https://gmod.tr/wiki/saverestore.LoadEntity)

### Örnek

Örnek kullanım.

```lua
saverestore.AddRestoreHook( "HookNameHere", function( save )
	PrintTable( saverestore.ReadTable( save ) )
end )
```

**Çıkış:** Eğer örneği kullanırsanız. [saverestore. AddSaveHook](https://gmod.tr/wiki/saverestore.AddSaveHook)

```lua
1 = Test
```

- [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/saverestore.AddRestoreHook
