daemitus / SomethingNeedDoing

87 stars 64 forks source link

[Feature Request] load other Lua scripts. #88

Open zaevi opened 2 years ago

zaevi commented 2 years ago

For example I write a script named utils:

function echo(str)
    yield("/echo "..str)
end

Then I can use it in other scripts like:

RunScript("utils")

local cp = GetCurrentCp()
echo(cp)

It would be helpful to make complex scripts.

ladyredxiv commented 1 year ago

This. Please so much this. It would make things a load easier in the long term.