Garry's Mod Wiki

baseclass.Set

  baseclass.Set( string name, table tab )

Description

Add a new base class that can be derived by others. This is done automatically for:

  • widgets
  • panels
  • drive modes
  • entities
  • weapons
  • gamemodes (with prefix "gamemode_")

For more information, including usage examples, see the BaseClasses reference page.

Arguments

1 string name
The name of this base class. Must be completely unique.
2 table tab
The base class.