require

From Garry's Mod
Jump to: navigation, search
 require( )

Description

First tries to load a binary module with the given name, if unsuccessful, it tries to load a Lua module with the given name.

BUG

Running this function with pcall or xpcall will still print an error that counts towards sv_kickerrornum.

Issue Tracker: #1041

Request Tracker: #813

Arguments

string name

The name of the module to be loaded.
Personal tools
Navigation