Garry's Mod Wiki

Revision Difference

SANDBOX:PlayerSpawnedSWEP#552966

<function name="PlayerSpawnedSWEP" parent="SANDBOX" type="hook"> <ishook>yes</ishook>⤶ <description> Called after the player has spawned a scripted weapon from the spawnmenu with a middle mouse click. For left mouse click spawns, see <page>SANDBOX:PlayerGiveSWEP</page>. </description> <realm>Server</realm> <predicted>No</predicted>⤶ <args> <arg name="ply" type="Player">The player that spawned the SWEP</arg> <arg name="ent" type="Entity">The SWEP itself</arg> </args> </function>