if ply:HasEquiped?

Is ply:HasEquiped or something like this in the game im looking to do something like this


function SpeedWeapon()
if ply:HasEquiped( "weapon_speedwep" )
then
ply:SetRunSpeed(500)
ply:SetWalkSpeed(500)
      end
end

Are there any commands to do something like this?

Couldn’t you do the SWEP:Deploy() function in the swep?

I could, thanks