Jump to content

[C++] Can i use MTA functions in modules?


Recommended Posts

Posted

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

Posted

MTA doesn't export the scripting API to modules at the moment.

Currently, the only way is to use Lua to call the functions.

  • Sad 1
Posted
CLuaArguments args;
args.PushString(szEventName);
args.PushBoolean(true);
args.Call(luaVM, "addEvent");

Like so I called once MTA functions

  • Thanks 2
Posted
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...