slaimmials Posted March 25, 2023 Share Posted March 25, 2023 I need to save a var Link to comment Share on other sites More sharing options...
MAARS Posted March 25, 2023 Share 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) Link to comment Share on other sites More sharing options...
slaimmials Posted March 25, 2023 Author Share Posted March 25, 2023 Thx so much Link to comment Share on other sites More sharing options...
slaimmials Posted March 25, 2023 Author Share 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? Link to comment Share on other sites More sharing options...
MAARS Posted March 26, 2023 Share Posted March 26, 2023 local configFile = gg.getFile()..'.cfg' You can change this file path to anything you want Link to comment Share on other sites More sharing options...
Question
slaimmials
I need to save a var
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.