Filipe_Br Master Cheater
Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Sat Dec 17, 2016 5:07 pm Post subject: [Example] Running Lua Files |
|
|
To run the script from a file, do the following:
Code: |
-- If the trainer executable is in the same folder as your file,
-- just put the file name.
local directory = "script.lua"
local file = io.open(directory, "r") -- Open file in read mode
for script in file:lines() do
load(script)() -- Run the script
end
file:close() --Closes the file open
|
_________________
... |
|