MAARS Posted March 25, 2023 Posted March 25, 2023 local configFile = gg.getFile()..'.cfg' local data = loadfile(configFile) if data ~= nil then data = data() end local input = gg.prompt({'Please input something'}, data) if input == nil then os.exit() end gg.saveVariable(input, configFile) Examples of Lua scripts (#5no51qfc)
slaimmials Posted March 25, 2023 Author Posted March 25, 2023 6 hours ago, MAARS said: local configFile = gg.getFile()..'.cfg' local data = loadfile(configFile) if data ~= nil then data = data() end local input = gg.prompt({'Please input something'}, data) if input == nil then os.exit() end gg.saveVariable(input, configFile) Examples of Lua scripts (#5no51qfc) Can you answer, how to save file to certain dir?
MAARS Posted March 26, 2023 Posted March 26, 2023 local configFile = gg.getFile()..'.cfg' You can change this file path to anything you want
Question
slaimmials
I need to save a var
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.