# table.Pack

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

```lua
table, number table.Pack( ... )
```

## Açıklama

Bir dizi öğeyi bir tabloya paketler ve yeni tabloyu döndürür. Lua'nın daha yeni sürümlerindeki `table.pack`'in alternatif bir uygulaması olarak tasarlanmıştır.

## Argümanlar

1. [vararg](https://gmod.tr/wiki/vararg) **items**: Bir tabloya paketlenecek öğeler.

## Dönen Değerler

1. [table](https://gmod.tr/wiki/table): `items` öğelerini içeren bir tablo.
2. [number](https://gmod.tr/wiki/number): Tabloya eklenen öğe sayısı.

### Örnek

```lua
local productID =  234
local productName = "Dark Chocolate"
local productIngredients = { "Cocoa Mass", "Cocoa Butter", "Vanilla", "Cocoa Solids: 70% min" }

local darkChocolateTable = table.Pack( productID, productName, productIngredients )

PrintTable( darkChocolateTable )
```

**Çıktı:**

```lua
1	=	234
2	=	Dark Chocolate
3:
		1	=	Cocoa Mass
		2	=	Cocoa Butter
		3	=	Vanilla
		4	=	Cocoa Solids: 70% min
```

- [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/table.Pack
