Modules: Difference between revisions

Jump to navigation Jump to search
6 bytes added ,  Friday at 05:21
no edit summary
No edit summary
No edit summary
Line 10: Line 10:


==Use in Scripting==
==Use in Scripting==
Once the module is loaded, all namespaces, classes, functions and properties it provides are available to use in scripting resources. Each module will have it's own namespace inside the module namespace. For example, if your module's namespace is "mysql" and you have a "connect" function within that namespace, then the syntax within scripting would be "module.mysql.connect()"
Once the module is loaded, all namespaces, classes, functions and properties it provides are available to use in scripts. A module's functions are available in the module namespace, inside another namespace with the name of the module. For example, if the module's namespace is "mysql" and it has a "connect" function, then in scripts you would use <code>module.mysql.connect()</code>


==Notes==
==Notes==
* For more help and information regarding modules, ask on the forum or the discord!
* For more help and information regarding modules, ask on the forum or the discord!
* '''For security reasons, modules can not be used on the client, and the server does not provide a way to distribute and load them onto clients.'''
* '''For security reasons, modules can not be used on the client, and the server does not provide a way to distribute and load them onto clients.'''
2,813

edits

Navigation menu