Jump to content
  • 0

Chainer into script


RealWanteD

Question

The title say it, how can I put the generated .lua file into script? 

Or, is there a command to call a lua file to execute from my main script

Like

 

function test() 

exec(/sdcard/targetd_script.lua)

gg.editAll("-2")

end

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

You need to call the variable externaleFile like a function

local externaleFile = loadfile('/storage/emulated/0/test.lua"')
externaleFile()

 

when you load file it does not execute it it just load the file into the variable so you can use it at anytime by calling it like a function

Link to comment
Share on other sites

1 hour ago, MAARS said:

You need to call the variable externaleFile like a function

local externaleFile = loadfile('/storage/emulated/0/test.lua"')
externaleFile()

 

when you load file it does not execute it it just load the file into the variable so you can use it at anytime by calling it like a function

 

Thank you bro, now it's working as I wanted 🙂

UpVote for sure

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.