Garry's Mod Wiki


NPC:SelectWeapon( string class )

Just Added

This was just added in the latest version (2020.06.24). It might only be available on the Dev Branch right now.


Forces the NPC to switch to a specific weapon the NPC owns. See NPC:GetWeapons


1 string class
A classname of the weapon or a Weapon entity to switch to.

Page Links

Special Pages



Render Time: 37ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 13