ax.module¶
Source: gamemode/framework/libraries/sh_module.lua
Module management system for loading and retrieving modules.
Documented functions: 3
Functions¶
ax.module:Get(name)¶
Get a loaded module by its unique identifier. Retrieves a module that has been previously loaded.
Realm: shared
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
The module's unique identifier |
Returns
table|nil: The module table if found, nil otherwise
Usage
ax.module:Include(path, timeFilter)¶
Include and load modules from a directory path. Automatically loads both single-file modules and directory-based modules with boot.lua. For directory modules, includes all standard framework directories in proper order.
Realm: shared
Parameters
| Name | Type | Description |
|---|---|---|
path |
string |
The directory path to search for modules |
Usage
ax.module:IsLoaded(name)¶
Check if a module is loaded. Tests whether a module with the given name has been successfully loaded.
Realm: shared
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
The module's unique identifier |
Returns
boolean: True if the module is loaded, false otherwise
Usage