SANDBOX:PlayerSpawnNPC

From Garry's Mod
Jump to: navigation, search
 SANDBOX:PlayerSpawnNPC( )

Contents

Description

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

Arguments

Player ply

The player that wants to spawn that NPC

Arguments

string npc_type

The npc type that player is trying to spawn

Arguments

string weapon

The weapon of that NPC

Returns

boolean

Return false to disallow spawning that NPC
Personal tools
Navigation