Garry's Mod Wiki

Garry's Mod Wiki

  module( string name, ... )

Description

Creates a table with the specified module name and sets the function environment for said table.

Any passed loaders are called with the table as an argument. An example of this is package.seeall.

Arguments

1 string name
The name of the module. This will be used to access the module table in the runtime environment.
2 vararg loaders
Calls each function passed with the new table as an argument.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...