Garry's Mod Wiki

Weapon:IsScripted

  boolean Weapon:IsScripted()

Description

Checks if the weapon is a SWEP or a built-in weapon.

Returns

1 boolean
Returns true if weapon is scripted ( SWEP ), false if not ( A built-in HL2/HL:S weapon )