Jump to content
  • 0

Chainer into script


RealWanteD

Question

Posted

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

6 answers to this question

Recommended Posts

Posted
9 minutes ago, MAARS said:

There are many ways to link lua file, using module or the function loadfile, i have made some example in the archives for you

Thank you, I'll test it rn

Posted

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

Posted
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

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.