# SANDBOX:PlayerSpawnNPC

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnNPC
- **Çeviri tarihi:** 2025-09-08

```lua
boolean SANDBOX:PlayerSpawnNPC( Player ply, string npc_type, string weapon )
```

## Açıklama

Oyuncunun belirli bir NPC'yi oluşturmasına izin verilip verilmediğini sormak için çağrılır.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **ply**: Bu NPC'yi oluşturmak isteyen oyuncu
2. [string](https://gmod.tr/wiki/string) **npc_type**: Oyuncunun oluşturmaya çalıştığı NPC türü
3. [string](https://gmod.tr/wiki/string) **weapon**: Bu NPC'nin silahı

## Dönüş Değeri

1. [boolean](https://gmod.tr/wiki/boolean): Bu NPC'nin oluşturulmasını engellemek için false döndürün

- [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:PlayerSpawnNPC
