Modules: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (→‎How to write modules?: removing useless parts that does not exist and rename the reference)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
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.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
==Modules list==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
<!-- You can view a list of all the documented modules in this wiki [[:Category:Modules|here]]. -->
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
You can view a list of all the documented modules here:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
{{ModulesList}}
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
<!--
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
==Modules SDK==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
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.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
* Linux
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
** [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz Official]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
*** (Delete the .d files, and add #include <cstring> to Common.h)
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
**** (On 64bit add -m32 to CPPFLAGS and LDFLAGS lines in Makefile)
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
* Microsoft Windows
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
** [http://www.mediafire.com/?b8b3asgegn0xkm4 Mirror (Mediafire)]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
** [https://mega.co.nz/#!nBNGUCgQ!3AHEJt684Heu9bN5de8xwAQ3h-qq5-V6fjUeU7rj5hI Mirror (MEGA)]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
===SDK Functions===
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
*Currently in there:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
**Base:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***HelloWorld
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
**MySQL
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***MySQLCreate
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***MySQLOpen
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***MySQLDestroy
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***MySQLQuery
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
***MySQLSafeString
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
===Using Lua inside of Linux Modules===
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
If you want to make use of Lua functions as exported by the MTA Server you have to link against the official deathmatch.so file. Then the export resolution during dlopen of your module will respect the symbol table of deathmatch.so which contains all of the Lua exports. '''Do NOT link against a static version of a freshly-compiled Lua library because that will create code conflicts and potentially crashes in the long run.'''
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
-->
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
==How to write modules?==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
* [[Modules_Introduction|Modules Introduction]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[Category:Scripting Concepts]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[Category:Modules]]
 
[[hu:Modules]]
[[pl:Modules]]
[[pt-br:Módulos]]
[[ru:Modules]]
[[ro:Module]]

Latest revision as of 19:17, 28 September 2024

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 here:


How to write modules?