Modules: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (→‎Modules SDK: Removed my link)
Line 13: Line 13:
* Microsoft Windows
* Microsoft Windows
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)]
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)]
** [http://hosting.jworld137.com/files/ml_devkit.zip Mirror (JWorld137 Hosting)]


===SDK Functions===
===SDK Functions===

Revision as of 14:59, 30 March 2014

Modules are extensions for Multi Theft Auto's Lua core, allowing the integration and use of custom Lua functions that have been written in C++, and compiled as a DLL or SO file. Modules are commonly used to create functions for such purposes that Multi Theft Auto lacks, such as sockets. All modules listed here are not distributed with Multi Theft Auto, and must be manually installed.

Modules list

You can view a list of all the documented modules in this wiki here.

Modules SDK

To be able to create your own modules, you must use the Modules SDK. You can download it from one of the links below - choose a link in accordance with your server's operating system.

  • Linux
    • Official
      • (Delete the .d files, and add #include <cstring> to Common.h)
        • (On 64bit add -m32 to CPPFLAGS and LDFLAGS lines in Makefile)
  • Microsoft Windows

SDK Functions

  • Currently in there:
    • Base:
      • HelloWorld
    • MySQL
      • MySQLCreate
      • MySQLOpen
      • MySQLDestroy
      • MySQLQuery
      • MySQLSafeString