Garry's Mod Wiki

require

require

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 1

Arguments

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

Special Pages


Wikis

?

Render Time: 65ms

DB GetPage 48
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 6