files.create_folder("nl\\Pidoras")
function get_neverlose_path()
return common.get_game_directory():sub(1, -5) .. "nl\\"
end
files.default_path = get_neverlose_path().."Pidoras\\"
files.configs_path = files.default_path.. "\\govno.json"
presets = {
names = {},
values = {}
}
local configs = {main = {names = presets.names, {values = presets.values}}}
on_load = function()
if files.read(files.configs_path) == nil then
files.write(files.configs_path, json.stringify(configs.main))
end
end
on_load()
local to_parse = files.read(files.configs_path)
local parsed = json.parse(to_parse)
print(parsed["values"])