JeViCo Posted May 15, 2019 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
Jusonex Posted May 16, 2019 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
XaskeL Posted May 17, 2019 Posted May 17, 2019 CLuaArguments args; args.PushString(szEventName); args.PushBoolean(true); args.Call(luaVM, "addEvent"); Like so I called once MTA functions 2
JeViCo Posted May 19, 2019 Author 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
Recommended Posts