Jump to content

lua script connect to cloud


ame2020

Recommended Posts

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

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

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.