Jump to content
  • 0

How to save value ( make configuration ) to file?


slaimmials

Question

4 answers to this question

Recommended Posts

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

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.