From Garry's Mod
Called when weapon tries to holster.
|NOTE||This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.|
The weapon we are trying switch to.
Return true to allow weapon to holster
Returns the weapon switched to when when the weapon is being holstered.
function SWEP:Holster( wep ) if not IsFirstTimePredicted() then return end LocalPlayer():ChatPrint("Switched to: "..(wep.PrintName or wep:GetClass())) end
Switched to Toolgun Switched to weapon_crowbar