Skip to content

v0.2.2 Released

Compare
Choose a tag to compare
@drakeee drakeee released this 10 Jul 21:19
· 18 commits to master since this release
  • I think that tests was successfull and the plugin no longer in Alpha state.
  • Resources can be loaded from server.cfg with the following setting: luascripts resourcename
  • Inside the resource Lua files now load into the same virtual machine and therefore functions are shared within the same resource.
  • Lua virtual machines were not perfectly stopped.
  • Fixed the timer.
  • New object manager implemented.
  • Resources now need to be in the following folder: "lua/resources/".
  • Added makefile therefore it can be compile in Linux (usage: make LUASAMP). I didn't tested under Linux so there can be some issues/crashes with it.
  • Fixed various crashes with timer when resource is being stopped.
  • Some junk codes removed.
  • New functions added to the argument reader.
  • Added Lua stack debug function.

Added "call" function that allows to call a function from other resource (given resource need to running). i.e.:

  • call("resourcename", "functioname", [arguments...])

If you don't like the previous method you can call function with the "export" global variable (it is similar to MTA "exports" global variable). i.e.:

  • export["resourcename"].testFunction("some string", 10, 20.0, true)
  • export["resourcename"]:testFunction("some string", 10, 20.0, true)
  • export["resourcename"]["testFunction"]("some string", 10, 20.0, true)
  • Added "isResourceRunning" function that allows to check if a given resource is running or not.
  • Now you can load modules too that allows to implement several Lua function. Modules can be loaded from server.cfg with the following setting: luamodules modulename.dll
  • Added Modul SDK which helps to make module (MTA mysql module imported for example).