# spawnmenu.GetToolMenu

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/spawnmenu.GetToolMenu
- **Çeviri tarihi:** 2025-10-27

```lua
table spawnmenu.GetToolMenu( string name, string label = "name", string icon = "icon16/wrench.png" )
```

## Açıklama

Spawn menüsünün sağ tarafından, isme göre mevcut bir araç sekmesini döndürür (genellikle [SANDBOX:AddToolMenuTabs](https://gmod.tr/wiki/SANDBOX:AddToolMenuTabs) hook'u sırasında).

İstenen araç sekmesi mevcut değilse, eklenecektir. Ayrıca bakınız: [spawnmenu.AddToolTab](https://gmod.tr/wiki/spawnmenu.AddToolTab).

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Sekmenin dahili adı. Bu, sıralama için kullanılır.
2. [string](https://gmod.tr/wiki/string) **label** = "name": Sekmenin 'hoş' adı (görünen adı).
3. [string](https://gmod.tr/wiki/string) **icon** = "icon16/wrench.png": Sekmenin ikonunun dosya yolu. Bir `.png` dosyası olmalıdır. Bakınız: [Silkicons](https://gmod.tr/wiki/Silkicons).

## Döndürdüğü Değer

1. [table](https://gmod.tr/wiki/table): Sekmenin sol kısmındaki kategorileri ve öğeleri temsil eden bir tablolar tablosu. Örnek yapı için aşağıdaki örneğe bakın.

### Örnek

Varsayılan Araç Sekmesinin içeriğini yazdırır.

```lua
PrintTable( spawnmenu.GetToolMenu( "Main" ) )
```

**Çıktı:**

```lua
1:
		1:
				CPanelFunction	=	function: 0x48a60408
				Command	=	gmod_tool axis
				Controls	=	axis
				ItemName	=	axis
				Text	=	#tool.axis.name
		2:
				CPanelFunction	=	function: 0x48a6b218
				Command	=	gmod_tool ballsocket
				Controls	=	ballsocket
				ItemName	=	ballsocket
				Text	=	#tool.ballsocket.name
		3:
				CPanelFunction	=	function: 0x48a8be48
				Command	=	gmod_tool elastic
				Controls	=	elastic
				ItemName	=	elastic
				Text	=	#tool.elastic.name
		4:
				CPanelFunction	=	function: 0x48ab5998
				Command	=	gmod_tool hydraulic
				Controls	=	hydraulic
				ItemName	=	hydraulic
				Text	=	#tool.hydraulic.name
...
		ItemName	=	Constraints
		Text	=	#spawnmenu.tools.constraints
2:
		1:
				CPanelFunction	=	function: 0x3a4235c8
				Command	=	gmod_tool balloon
				Controls	=	balloon
				ItemName	=	balloon
				Text	=	#tool.balloon.name
...
		ItemName	=	Construction
		Text	=	#spawnmenu.tools.construction
...
```

- [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/spawnmenu.GetToolMenu
