Gamemode.PlayerSpawnNPC
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpawnNPC |
Syntax | GM:PlayerSpawnNPC( Player ply, String npc, String weapon ) |
Description | Called when a player spawns an NPC |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnNPC]Gamemode.PlayerSpawnNPC [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Return true to allow spawning the NPC, false for not allowing it.
- This hook gets called just before the NPC is spawned.