06.07.2015, 12:56
Hi,
In the meantime you could create a table of the script names and then parse the table with loop to enable\disable them.
Thanks,
Roger
In the meantime you could create a table of the script names and then parse the table with loop to enable\disable them.
Code:
local myscripts = {"script a","script b","Event for 12/0/1"}
function enablescripts()
for i in pairs(myscripts) do
script.enable(myscripts[i])
end
end
function disablescripts()
for i in pairs(myscripts) do
script.disable(myscripts[i])
end
end
-- to disable
disablescripts()
-- to enable
enablescripts()
Thanks,
Roger