# SANDBOX:SpawnmenuIconMenuOpen

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/SANDBOX:SpawnmenuIconMenuOpen
- **Çeviri tarihi:** 2026-03-02

```lua
SANDBOX:SpawnmenuIconMenuOpen( Panel menu, Panel icon, string contentType )
```

## Açıklama

Oyuncunun bir bağlam menüsünü açtığında, spawnmenu simgelerinden birini sağ tıklayarak çağrılır.[İçerikIcon](https://gmod.tr/wiki/ContentIcon)ya da [SpawnIcon](https://gmod.tr/wiki/SpawnIcon)

Bu kanca bağlam menüsüne yeni özel menü seçeneklerini eklemek için kullanılabilir.

## Argümanlar

1. [Panel](https://gmod.tr/wiki/Panel) **Menü**: - Evet .[DMenu](https://gmod.tr/wiki/DMenu)Seçenekleri eklemek için.
- 2. [Panel](https://gmod.tr/wiki/Panel) **simge**: - Evet .[İçerikIkon](https://gmod.tr/wiki/ContentIcon)veya [SpawnIcon](https://gmod.tr/wiki/SpawnIcon)Doğru tıkladın.`SpawnIcon`için .`model`içerik türü ve bir `ContentIcon`Diğerleri için.
- 3. [ipler](https://gmod.tr/wiki/string) **İçerikType**: İçerik türü, örneğin: - `weapon` - `entity` - `vehicle` - `npc` - `model` - `tool` - `postprocess` Addon ile ilgili simgeler farklı türlere sahip olabilir.

### Örnek

NPC spawn simgelerine "kopya adı" seçeneğini ekler.

```lua
hook.Add( "SpawnmenuIconMenuOpen", "SM_CopyNPCName", function( menu, icon, contentType )
    if ( contentType != "npc" ) then return end

    menu:AddOption( "Copy Name", function()
        SetClipboardText( language.GetPhrase( icon.m_NiceName ) )
    end ):SetIcon( "icon16/page_copy.png" )
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/SANDBOX:SpawnmenuIconMenuOpen
