Modules: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Los módulos son extensiones de núcleo Lua de Multi Theft Auto, lo que permite la integración y el uso de funciones personalizadas de Lua que se han escrito en C++ y compilado como DLL o archivo SO. Los módulos se usan comúnmente para crear funciones de las cuales carece Multi Theft Auto, tales como los ''sockets''. Todos los módulos que figuran en esta lista no se distribuyen con Multi Theft Auto, y deben instalarse manualmente.
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.


==Lista de módulos==
==Modules list==
Puede ver una lista de todos los módulos documentados en esta wiki [[:Category:Modules|aquí]].
You can view a list of all the documented modules in this wiki [[:Category:Modules|here]].


==Módulos SDK==
==Modules SDK==
Para ser capaz de crear sus propios módulos, debe utilizar los módulos SDK . Puede descargarlos de uno de los enlaces siguientes - elija un enlace de acuerdo con el sistema operativo de su servidor.
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
* Linux
** [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz Official]
** [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz Official]
*** (Eliminar los archivos .d y agregue #include <cstring> a Common.h)
*** (Delete the .d files, and add #include <cstring> to Common.h)
**** (Para 64bit agregue -m32 a las lineas CPPFLAGS y LDFLAGS en Makefile)
**** (On 64bit add -m32 to CPPFLAGS and LDFLAGS lines in Makefile)
* Microsoft Windows
* Microsoft Windows
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)]
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)]


===Funciones SDK===
===SDK Functions===
*Actualmente hay::
*Currently in there:
**Base:
**Base:
***HelloWorld
***HelloWorld

Revision as of 22:40, 4 April 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