Garry's Mod Wiki

Garry's Mod Wiki

  require( string name )

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.

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

Issue Tracker: 1041
This function will try to load local client file if sv_allowcslua is set to 1
Binary modules can't be installed as part of an addon and have to be put directly into garrysmod/lua/bin/ to be detected. This is a safety measure, because modules can be malicious and harm the system.

Arguments

1 string name
The name of the module to be loaded.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...