GM:PreRegisterSWEP
Just Added
This was just added in the latest version (2021.01.27). It might only be available on the Dev Branch right now.
Description
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.
Arguments
Returns
1 boolean
Return
false
to prevent the weapon from being registered. Returning any other value has no effect.