Modules: Difference between revisions
Jump to navigation
Jump to search
WolfPiotrK2 (talk | contribs) (Replaced content with "Image:mtapl.jpg") |
(Undo revision 58196 by WolfPiotrK2 (talk)) |
||
Line 1: | Line 1: | ||
[[ | 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 [[:Category:Modules|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 | |||
** [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz 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 | |||
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)] | |||
** [https://mega.co.nz/#!nBNGUCgQ!3AHEJt684Heu9bN5de8xwAQ3h-qq5-V6fjUeU7rj5hI Mirror (MEGA)] | |||
===SDK Functions=== | |||
*Currently in there: | |||
**Base: | |||
***HelloWorld | |||
**MySQL | |||
***MySQLCreate | |||
***MySQLOpen | |||
***MySQLDestroy | |||
***MySQLQuery | |||
***MySQLSafeString | |||
[[Category:Scripting Concepts]] | |||
[[Category:Incomplete]] | |||
[[Category:Modules]] | |||
[[pl:Modules]] | |||
[[pt-br:Módulos]] | |||
[[ru:Modules]] |
Revision as of 12:46, 16 August 2018
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)
- (Delete the .d files, and add #include <cstring> to Common.h)
- Official
- Microsoft Windows
SDK Functions
- Currently in there:
- Base:
- HelloWorld
- MySQL
- MySQLCreate
- MySQLOpen
- MySQLDestroy
- MySQLQuery
- MySQLSafeString
- Base: