ame2020 Posted April 24, 2019 Share Posted April 24, 2019 Hi , how can create lua script connect internet and download updates from cloudflare or any cloud, can i create lua script to enable /disable internet connection thanks in advance Link to comment Share on other sites More sharing options...
maulz Posted April 24, 2019 Share Posted April 24, 2019 gg.makeRequest() Link to comment Share on other sites More sharing options...
CmP Posted April 24, 2019 Share Posted April 24, 2019 3 hours ago, ame2020 said: can i create lua script to enable /disable internet connection No, this is not possible, scripts do not have such permissions. Moreover, when "makeRequest" function is used in a script, user will be asked, if he wants to allow internet access for the currently running script. Link to comment Share on other sites More sharing options...
TopGEOYT Posted April 30, 2019 Share Posted April 30, 2019 On 4/24/2019 at 8:53 PM, ame2020 said: Hi , how can create lua script connect internet and download updates from cloudflare or any cloud, can i create lua script to enable /disable internet connection thanks in advance Yes u can make file downloader for any your script . Code for any file downloader : --------------------------------------------------------Question2=gg.makeRequest("Link",nil).content if Question2 then file = io.open(gg.getFile():gsub('lua', 'Downloaded.lua'),'w') file:write(Question2) file:close() gg.alert([[Updated Script is Downloaded]]) pcall(load(gg.getFile())); else print([[⚠Something Went Wrong⚠]]) os.exit(); end -------------------------------------------------------- input your file Url in "Link" and it wil be downloaded . and second question about enable disable connection you can see answer By CmP ( See Up ). Link to comment Share on other sites More sharing options...
zerocyberzevolution Posted May 5, 2019 Share Posted May 5, 2019 fuvc = 'https://www.example.com/your.lua' fbegin = gg.makeRequest function begin() local data = assert(load(fbegin(fuvc, nil).content)) return data() end begin() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.