Garry's Mod Wiki

Garry's Mod Wiki

  SANDBOX:PlayerSpawnedSWEP( Player ply, Entity ent )

Description

Called after the player has spawned a weapon from the spawnmenu with a middle mouse click (mouse wheel click).

For a hook capable of preventing such spawns, see SANDBOX:PlayerSpawnSWEP.
For left mouse click spawns, see SANDBOX:PlayerGiveSWEP.

Arguments

1 Player ply
The player that spawned the SWEP
2 Entity ent
The SWEP itself

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...