JeViCo Posted May 15, 2019 Share Posted May 15, 2019 Hello there! So the question is in the title - am i able to use MTA functions somehow inside module code? Maybe i can link it somehow with MTA source code to avoid errors during compiling Link to comment
Jusonex Posted May 16, 2019 Share Posted May 16, 2019 MTA doesn't export the scripting API to modules at the moment. Currently, the only way is to use Lua to call the functions. 1 Link to comment
XaskeL Posted May 17, 2019 Share Posted May 17, 2019 CLuaArguments args; args.PushString(szEventName); args.PushBoolean(true); args.Call(luaVM, "addEvent"); Like so I called once MTA functions 2 Link to comment
JeViCo Posted May 19, 2019 Author Share Posted May 19, 2019 On 17/05/2019 at 14:01, XaskeL said: CLuaArguments args; args.PushString(szEventName); args.PushBoolean(true); args.Call(luaVM, "addEvent"); Like so I called once MTA functions Thanks =D I understand module mechanics a bit more now Link to comment
Recommended Posts