G.require

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.require]G.require [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAdds functions from testmodule.
Used onNewerShared.png
Code
require("testmodule")
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox