Skip to main content

require

Loads a Lua module. The package.path is searched for the module, and the first file found is loaded. If the module returns a value, that value is returned by require, otherwise true is returned. Workshop libraries can be loaded using require "gamesense/<id>", if you are subscribed to them.

require(modname: string):

Arguments

NameDescriptionType
modnameThe name of the module to load.string

Returns module: undefined