G.require
From GMod Wiki
Function | |
Syntax |
require( String Filename ) Where is this used? |
Description: | |
Adds functions from an external dll or Lua module. | |
Returns: | Boolean |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.require]G.require [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Adds functions from testmodule. |
---|---|
Used on | |
Code | require("testmodule") |
Output | N/A |
Additional Notes
- Returns true if the module was loaded.
- Can also be written at require "testmodule"