-
-
Notifications
You must be signed in to change notification settings - Fork 499
Description
Is your feature request related to a problem? Please describe.
idea is simple, if you can load c/c++ code into server, why not lua as well? If you want to add some function you sometimes don't need c/c++ for it.
Describe the solution you'd like
make "loadmodule" accept .lua files
With it, you can recreate ml_system module in lua with literraly 4 lines of code:
local execute = os.execute;
function system(command)
return execute(command)
endIt makes every resource can use system function while still os.execute prints "unsafe function was called"
Inside module you would be able to use extra set of functions, including dangerous ones.
it will make people can very easy write any module they want ( pretty useful )
example "onElementCreated" - you can overwrite every create function and manually call event.
Describe alternatives you've considered
/
Additional context
foo.lua put into server\mods\deathmatch\modules folder and add <module src="foo.lua"/> to server config or type loadmodule foo command