Garry's Mod Wiki

WEAPON:SetupDataTables

  WEAPON:SetupDataTables()

Description

Called when the SWEP should set up its Data Tables.

Example

Sets up networked variables, adds functions SetDamage, GetDamage, SetMuzzlePos and GetMuzzlePos.

function SWEP:SetupDataTables() self:NetworkVar( "Float", 0, "Damage" ) self:NetworkVar( "Vector", 0, "MuzzlePos" ) end