# ContentIcon:SetNPCWeapon

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/ContentIcon:SetNPCWeapon
- **Çeviri tarihi:** 2025-09-08

```lua
ContentIcon:SetNPCWeapon( table weapons )
```

## Açıklama

"NPC" içerik türüne sahip içerik ikonu için, kullanıcı NPC'yi spawnlamaya çalıştığında rastgele seçilecek bir silah sınıfları tablosu ayarlayan bir [AccessorFunc](https://gmod.tr/wiki/Global.AccessorFunc)'tır.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **weapons**: Kullanıcı NPC'yi spawnlamaya çalıştığında arasından seçim yapılacak bir silah sınıfları tablosu.

- [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/ContentIcon:SetNPCWeapon
