[Plugin] Yet Another Lua Plugin
#5

Quote:
Originally Posted by lepegadore
View Post
Is it possible to write an entire Gamemode (including MySQL, Streamer, some LUA anticheat etc) with this? And
I wonder if there are too much speed difference handling a big gamemode with many players (No premature optimization).

Also there is a Lua Mysql package? can you post some simple example? same with Streamer.


Thanks for the Plugin.
Writing a gamemode is definitely possible with this plugin. In fact, you can replace OnFilterScriptInit with OnGameModeInit in the sample code above, and it will work like a normal gamemode.

Standard Lua packages can be easily used from your code, just use "scriptfiles/lua/*.lua" for Lua packages, and "plugins/lua/*.dll" for C packages, and the require function will load them automatically as usual.

Any SA-MP plugin can also be used, be it streamer, MySQL or something else. Native functions from all plugins are available in the interop.native table, and can be called without any prior definitions. For more information, please see the wiki.
Reply


Messages In This Thread
Yet Another Lua Plugin - by IllidanS4 - 26.10.2018, 15:06
Re: Yet Another Lua Plugin - by IllidanS4 - 26.10.2018, 15:09
Re: Yet Another Lua Plugin - by IllidanS4 - 17.11.2018, 00:43
Re: Yet Another Lua Plugin - by lepegadore - 19.11.2018, 19:03
Re: Yet Another Lua Plugin - by IllidanS4 - 19.11.2018, 20:35
Re: Yet Another Lua Plugin - by narwn - 20.11.2018, 04:39
Re: Yet Another Lua Plugin - by IllidanS4 - 20.11.2018, 12:06
Re: Yet Another Lua Plugin - by IllidanS4 - 28.12.2018, 18:42
Re: Yet Another Lua Plugin - by IllidanS4 - 08.02.2019, 00:08
Re: Yet Another Lua Plugin - by Bolex_ - 08.02.2019, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)