Garry's Mod Wiki

require

void 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.

Arguments

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

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 11
Render Body 0
Render Sidebar 13