# WEAPON:SetupDataTables

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

```lua
WEAPON:SetupDataTables()
```

## Açıklama

SWEP'in [Veri Tablolarını (Data Tables)](https://gmod.tr/wiki/Networking_Entities) kurması gerektiğinde çağrılır.

### Örnek

Ağa bağlı (networked) değişkenleri ayarlar, SetDamage, GetDamage, SetMuzzlePos ve GetMuzzlePos fonksiyonlarını ekler.

```lua
function SWEP:SetupDataTables()
	self:NetworkVar( "Float", 0, "Damage" )
	self:NetworkVar( "Vector", 0, "MuzzlePos" )
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/WEAPON:SetupDataTables
