Garry's Mod Wiki

Garry's Mod Wiki

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

Description

Called to ask if player allowed to spawn a particular NPC or not.

Arguments

1 Player ply
The player that wants to spawn that NPC
2 string npc_type
The npc type that player is trying to spawn
3 string weapon
The weapon of that NPC

Returns

1 boolean
Return false to disallow spawning that NPC

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...