This was just added in the latest version (2021.01.27). It might only be available on the Dev Branch right now.
Called when a Scripted Weapon (SWEP) is about to be registered, allowing addons to alter the weapon's SWEP table with custom data for later usage. Called internally from weapons.Register.
falseto prevent the weapon from being registered. Returning any other value has no effect.